Mine is the proper indentation, i.e. 4 spaces. 8 is too wide and 2 is sick.
Name:
Anonymous2006-04-11 10:16
4 for block structured code eg C, 2 for Lisp.
Name:
Anonymous2006-04-11 10:40 (sage)
Life's too short to give a shit about trivialities.
Name:
Anonymous2006-04-11 10:41
Hardly trivial. Improperly indented code is hard to read.
Name:
Anonymous2006-04-11 10:43
4 spaces ftw
Name:
Anonymous2006-04-11 11:17 (sage)
Two spaces.
Name:
Anonymous2006-04-11 11:26
4 spaces, no tabs.
I hate that all my CS profs mix spaces and tabs. I end up getting 8 space tabs and 4 space indents. Then I have to fix it.
Name:
Anonymous2006-04-11 11:29 (sage)
4, no space characters because i hate clicking in the middle of a tab and not landing on a 4-space boundary
Name:
Anonymous2006-04-11 12:11
1 tab; spaces for intra-block indentation so it looks the same on all tabwidths.
4 for tabwidth.
Name:
Anonymous2006-04-11 12:47
According to my .vimrc, I use 2 spaces for Perl, Lua, Ruby, Ocaml, Scheme, Fortran, Forth, Lisp. 4 spaces for everything else.
Name:
Anonymous2006-04-12 19:33
2 spaces, and tabs are the very incarnation of evil.
Name:
Anonymous2006-04-12 19:58
2 spaces are awesome.
Name:
Anonymous2006-04-12 22:11
2 spaces should be enough to distinguish clearly and easily. Anything more is just wasting screen space.
Name:
Anonymous2006-04-13 7:36
>>13
Zomg, screen space is at such a huge premium when text editing in any OS that can show more the 80 columns.
4 spaces or 4 space-tabs are by far the best answer to this question.
Name:
Anonymous2006-04-13 8:53
>>13
4 spaces is a must if you have 3 or 4 levels of indentation in one algorithm.
Name:
Anonymous2006-04-13 9:33
>>14
more than 80 columns of text is too much text for one line. melts my brain.
Name:
Anonymous2006-04-13 14:50
I indent 80 chars per line with hashes and I use a preprocessor to remove the hashes.
Name:
Anonymous2006-04-13 18:42
screen space is at such a huge premium when text editing in any OS that can show more the 80 columns.
Random teen, meet real world. Everyone I know, both in industry and academia, uses 80 characters. There are two reasons:
a) You can print code out. Good for code reviews.
b) See >>16.
c) http://www.google.com/search?q=legibility+layout+studies
Name:
Anonymous2006-04-13 18:44
I indent my code into the 4th dimension; tabs are 1/2 second.
Name:
Anonymous2006-04-16 7:05
v qg
Name:
Anonymous2006-04-16 16:46
4 spaces, anything less looks like learning 13 year old code, and anything more looks like sucky editor/settings.
Name:
Anonymous2006-04-17 13:23
I use a random amount of indentation at random times.