Well?

Well?

Other urls found in this thread:

kernel.org/doc/Documentation/CodingStyle
twitter.com/SFWRedditGifs

>Well?
Well what?

Which is better?

Tabs.
Now get out.

Neither
Indentation is a meme

You should conform to the standards that people using your programming language use.

If there are no standards, then you should use the standard that the project you're working on chose.

If it's your project, and there are no language standards, then you should choose whichever you want and state that this is a convention for the project.

It's not rocket surgery.

kernel.org/doc/Documentation/CodingStyle
>Tabs are 8 characters, and thus indentations are also 8 characters.
There are heretic movements that try to make indentations 4 (or even 2!)
characters deep, and that is akin to trying to define the value of PI to
be 3.
>Rationale: The whole idea behind indentation is to clearly define where
a block of control starts and ends. Especially when you've been looking
at your screen for 20 straight hours, you'll find it a lot easier to see
how the indentation works if you have large indentations.
>Now, some people will claim that having 8-character indentations makes
the code move too far to the right, and makes it hard to read on a
80-character terminal screen. The answer to that is that if you need
more than 3 levels of indentation, you're screwed anyway, and should fix
your program.
>In short, 8-char indents make things easier to read, and have the added
benefit of warning you when you're nesting your functions too deep.
Heed that warning.

8-char indentations are too fucking wide.

>>Now, some people will claim that having 8-character indentations makes
>the code move too far to the right, and makes it hard to read on a
>80-character terminal screen. The answer to that is that if you need
>more than 3 levels of indentation, you're screwed anyway, and should fix
>your program.

8-char indentations are too fucking wide.

>Linux lecturing people on code quality

wew

I use 4-column wide tabs for indentation and spaces for aligning within a line, crontab/fstab for example, so it maintains alignment on machines where tabs have different columns widths.

This
What a fucking pointless thread. { Fuck you op
}

This is how I do it too.

Like if I have a large if statement that I want to break into multiple lines I try to fit each line in the same width.

Default for general code is 1 indent, anything inside of a function. Add a for i, then a for j, then throw in an if statement and you're already at 4.

If you don't think looping across a 2-dimensional array is a valid coding option, well... you're confirmed for a poorfag that doesn't make money off of programming.

Tabs for indentation. Spaces for manual alignment.

>2-space soft tabs master race

I use 2 spaces per indentation level, and I even considered to switch to one space. I don't like tabs at all.

4 width tabs. Spaces make it annoying to move with arrows.

I use 3 space tabs, odd primes are more secure.

...

If you use tabs then you can set the display width to whatever you want.

I use 3-space tabs because they look better.

Whatever the company or group decides. Keep your shit consistent.