[–]▶ No.820909>>820934 >>820969 >>825569 >>825573 >>825593 >>825691 [Watch Thread][Show All Posts]
Since we argue about literally everything else why not this?
What is the perfect indent size?
<2
<4
<8
Post rational arguments detailing pro and contra of both sides.
▶ No.820915>>820917 >>825708 >>826211
Clearly a thread by a /pol/tard with no clue about anything to do with actually writing code. As evidenced by the irrelevant (and wrong, neither of those three formulated relativity) OP image
▶ No.820917>>820918 >>820926 >>820975
>>820915
Well said. /tech/ is owned by /leftypol/, no /pol/ weenies allowed
▶ No.820918>>820923 >>820926
>>820917
Fuck you, false flagging autist. What do you accomplish doing that?
▶ No.820923>>820926
>>820918
The downfall of the patriarchy
▶ No.820924>>820925
8 is the best indent size imo.
▶ No.820926>>820930 >>825706
4 because 2 is for JS ((("people"))) and 8 is for autistic kernel mantainers.
[spoiler]8 > 2]/spoiler]
>>820923
>>820918
>>820917
https://youtu.be/2TbbvXK5QS8
▶ No.820927
2
It's obviously indented without wasting space.
▶ No.820934
>>820909 (OP)
If you can't tell something is out of alignment by even one space then there's something wrong with you.
Larger indents sizes mean less room for code leading to retarded font sizes.
It looks ridiculous.
▶ No.820936
There's literally no argument for any of those, it's pure personal preference.
Anything above 4 is shit though and you should get thicker glasses if you need it.
▶ No.820961>>820968 >>825565
This isn't an issue if you use tabs. If you use spaces instead of tabs, you are the real problem.
▶ No.820968>>820971
>>820961
>he still uses tabs while every noteworthy project uses spaces
lmao tbh
▶ No.820969
>>820909 (OP)
Depends on the language.
For example, write a shell script with 8 spaces and you see how wrong it looks, 4 looks more organized, 2 fits just perfect.
▶ No.820971>>825622
>>820968
>free software board
>imposes nonfree software on others
▶ No.820975
>>820917
>if you don't believe in the Jewish conspiracy, you must be a commie
Are you like 12 or something?
▶ No.820976
I use 4 spaces mapped to the tab key. 2 spaces is fine, but I find that it's far more explicit at 4, and 3 is just weird, but I've thought about doing this.
▶ No.825561
▶ No.825565>>825575
>>820961
Tabs are a mistake. You wordwrap comments (hopefully) to a line length so you've already forced a tab size. So viewed in anything with any other tab size it will look like shit.
Since you're already going to force a size, use spaces. Then it's viewed correctly in everything and is edited correctly in everything.
▶ No.825569
>>820909 (OP)
Whatever the fuck my editor uses by default. I don't give a shit.
▶ No.825573
>>820909 (OP)
Indent with tabs and not spaces and it doesn't matter because you just set the default tab size to whatever you want in your editor and it doesn't fuck up everybody else when they download your code. Space intents are an antiquated standard from the days when "code review" meant literally printing off the code onto sheets of paper and sitting down and grading it with a pen. In that situation, and only that situation, consistent spaces were required. There is no reason to not exclusively use tab indent.
▶ No.825575>>825577
>>825565
>You wordwrap comments (hopefully) to a line length so you've already forced a tab size. So viewed in anything with any other tab size it will look like shit.
>manually wrapping comments
Nah fuck off. That's also something that's retarded and needs to die. See, modern text editors have this fancy, space age feature called word wrap built in from the start. Stop truncating your comments and just let them wrap naturally, then it doesn't look like shit no matter WHAT screen size you're using.
▶ No.825577>>825586
>>825575
Some of us the ones who actually write code would rather just write code than fight with formatting in a million different tools that are going to fuck that up in different ways.
▶ No.825583
I just use the default tab stop and don't change anything related in editor. With vi, that's a real tab stop of 8 spaces width. Might be different in other editor, but I don't care because I'm not going to change it.
▶ No.825586>>825605
>>825577
Exactly, which is why it's easier and less effort to just write what you need to write in your comment and not fuck around with formatting it to all be 80 characters per line.
▶ No.825593
>>820909 (OP)
>caring about (((shillstein))) and his wrong metaphysics
>(((NASA)))
>not glorious Tesla (not the Tesla motor whitewash, retard)
▶ No.825605>>825608
>>825586
Spoken like someone who has never sent a patch by email. You end up forced to define tabs as the default 8 spaces like Linus.
▶ No.825608
>>825605
I run GNU indent through my code.
▶ No.825622
>>820971
>noteworthy
>nonfree
You *DO* need glasses.
▶ No.825691
>>820909 (OP)
I'm surprised that I actually already have been bothered by this parameter in the past. For me 4 is the only option. 2 may be more "efficient" but is not enough for my eyes to create a clear visible structure. 8 on the other hand is tremendously ugly.
My theory would be that 8 is too far out of the focus area of the eye. Whereas 2 vs. 4 is a mere psychological decision.
▶ No.825706>>825831
>>820926
>8 is for autistic kernel mantainers
is it? why would that be preferable? seriously asking out of interest
▶ No.825708>>825736
>>820915
>Oops, Einstein just forgot to cite his sources!
▶ No.825736
>>825708
>missing the point
Retards have a tendency to assign all credit or blame to one figurehead.
▶ No.825831>>826072
>>825706
If you add in a requirement of max columns you can ensure people don't nest too much. This helps encourage a reduced complexity and breaking things into functions.
▶ No.826072
>>825831
sounds reasonable. thanks!
▶ No.826211
>>820915
>falling for the bait
Retard