I'm not suggesting unlimited but isn't it time we revisit this?
It really feels like one of those "we've always done it this way so just leave it"
I'm not suggesting unlimited but isn't it time we revisit this?
It really feels like one of those "we've always done it this way so just leave it"
Note that it isn't a hard limit. The actual rule is "[s]tatements longer than 80 columns will be broken into sensible chunks, unless exceeding 80 columns significantly increases readability and does not hide information." So longer than 80 is fine, but only if it significantly increases readability. That sounds about right to me!
myDescriptiveResultVariable = myDescriptiveMethod(myWordyVariable, myVerboseVariable);
That's 87 characters.
Most projects aren't that big and don't have needs that are like the Linux kernel. There may be (and probably are) good reasons not to adopt its idiosyncratic choices.
I started programming C full time about 2.5 years ago (after many more with PHP, et al). There's an aesthetic to writing C that I don't find with other programming languages. I believe this is, in part, due to the generalized use of shorter variables and keeping everything as compact and simple as possible.
Since deciding to keep everything at an 80-char width, I can say that it has helped me maintain a certain kind of readability I don't find with other languages. And, while aesthetics don't matter once the compiler takes over, I can say that good aesthetics do improve my ability to program more effectively and efficiently.
This being HN, naturally someone's going to tell me they do most of their programming on a 7 inch terminal screen.
But 80 chars comes with a cost: over terse code, or a lot of scrolling.
Personally, I've started using 100 columns for personal projects. But I stick to 80 for anything someone else is going to have to look at. To some extent, its more important to have a standard, so you don't have to worry about weird line-wrapping placements when someone else looks at your code, than it is to have one that fits superwell on the average modern screen. So we're probably stuck with 80
I also think that code that has been constrained to 80 columns reads better. Personal opinion of me.