Janis Mittelstaedt wrote:So a java convention states that a line shouldn't be over 80 characters long...
Jeff Verdegan wrote:Make sure you're using space characters, not tab.
Bear Bibeault wrote:Putting tabs into code is a firing offense
Janis Mittelstaedt wrote:So a java convention states that a line shouldn't be over 80 characters long...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
The fact is that our eyes are designed for scanning, so if you give them too much to take in at once, your brain finds it more difficult to process the information; and that leads to mistakes - for you and the reader - and I hope you plan on your programs being read.
Now whether the optimum is 70, 80 90 or 120, I wouldn't know but, old fart that I am, I'd say 120 is on the high side and 70 maybe a bit short; but I'd much rather be reading code that errs on the short side than the long.
And what does it cost you? An extra hit of the 'return' key.
Jeff Verdegan wrote:Obviously there's a lot of personal preference involved here, but I find code easier to read when the lines are long than when a given statement or method call wraps.
Unlike reading a novel, when I read code I don't usually read the whole thing top-to-bottom, left-to-right, beginning-to-end. I tend to read it in chunks--methods, blocks, loops, etc. I'd rather have a single method call with it's multiple or long-named parameters take up a single wide line than wrap to 2 or 3, especially when there are multiple of those in a row.
Of course, there's a limit to that, and for me, that limit lands comfortably in the 120-140 character range.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:Each to his/her own, I guess
And I say again: do you want your programs to be read?
Bear Bibeault wrote:(Even though I am an old coot that used to carry boxes of punch cards around way back when.)
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Don't get me started about those stupid light bulbs. |