Re:Your code style guide is crap, but still better than noth...
by webreac on Friday January 11, 2013 @11:19AM
(#5043299)
I do not understand why there seem to be so much agreement on 80 characters line length. I often use 132 character. I have a rule that invite to avoid abbreviations in identifiers and I have often 4 spaces. If I limit to 80 character, all the line breaks decrease significantly readability.
[ Parent
| on HN ]
Re:Your code style guide is crap, but still better than noth...
by nakkiel on Friday January 11, 2013 @11:31AM
(#5043364)
Code is just like literature. Too many words on a line and it looses the reader. All of this indeed depends on the density of the language you're using. If your're using extremelyLongVariableNames it may be ok to use 132 characters per lines but if you use shorter var_names, 80 characters is plenty of room to express yourself^W^Wwrite code.
Also, unix. Stop arguing about religion.
Re:Your code style guide is crap, but still better than noth...
by caipre on Friday January 11, 2013 @11:58AM
(#5043528)
I understand the readability argument for literature, where lines of text are left-justified. In code though, indentation is much more prevalent. Between indentation and alignment, some lines of code are unsettlingly clipped to a small fraction of the available 80 characters.
I still recommend wrapping at 80 chars though.