This post originated from an RSS feed registered with Ruby Buzz
by Joey Gibson.
Original Post: Stick To 80 Columns. Please?
Feed Title: Joey Gibson's Blog
Feed URL: http://www.jobkabob.com/index.html
Feed Description: Thoughts, musings, ramblings and rants on Java, Ruby, Python, obscure languages, politics and other exciting topics.
I know we're not still living in the 1970's, nor are we still working
with 80 column punch cards, but please, for the love of all that
is good in the worldtry to limit your code to 80
characters per line or thereabouts! I've been looking at some
code recently that has line lengths of 250 characters or more, and that just
ain't right. Not all of us have 60" flat-panel monitors that will
allow us to see those huge lines without horizontal scrolling
and it's damned annoying to have to scroll sideways to see the
code. Now I understand that there are times when there just isn't a
good place to break a line to keep it to 80 characters; but that
should be the exception and not the rule. Please people, break your
lines into reasonable lengths. And don't put 400 lines of code in a
single method either. But that's another story...