Re:The Facts Behind the Code Indention Style War
by samlittlewood on Tuesday July 07, 2009 @10:36AM
(#691519)
Personally, I use K&R BUT add space as appropriate to make things readable. Using BSD format, amongst other things, I find the 3 lines between the leaves of an if/else statment really start to chafe.
Having used python and small amounts of lisp, I also flirted with rolling up all the close parens/braces on the end of lines with no white space.
Re:The Facts Behind the Code Indention Style War
by Confusion on Tuesday July 07, 2009 @10:41AM
(#691535)
This is about bracing styles and your comment is about Python. That is almost a non sequitur ;)
Re:The Facts Behind the Code Indention Style War
by ErrantX on Tuesday July 07, 2009 @11:10AM
(#691593)
not really - I used K&R in PHP which got me in the poor habit of compressing any code. :)
Re:The Facts Behind the Code Indention Style War
by mrinterweb on Tuesday July 07, 2009 @11:57AM
(#691703)
I don't know if compressing code is a bad habit. Generally the more code I can see on a screen the faster I can understand what is happening. A good way to add visual space is to supplement the extra lines Allman style would add with comments. I hate scrolling up and down constantly to see what a simple class is trying to do.
Go Tom, great stuff. Now all we've got to do convince is teach you to space it all out so I can read it
I switched to Allman after that: much to the relief of many people ;)