Does 80 Characters Column Width Still Make Sense in 2014?

One of the oldest coding practice is to keep line width 80, Why? I believe it was to make your code more readable in the age of small monitors so that whole content can fit in screen, or it might have origin from the age of punch card, which was used to be 80 column wide; but do you think this rule make sense in 2014? We are now living in the age where most of the developers has got large monitors, which can show up-to 180 characters, doesn’t this is wastage of precious monitor space? It also make your code unnecessary long, than it actually is. I first come to know about line wrapping at 80, while reading Oracle Code Conventions for the Java Programming Language, which was last revised at April 20, 1999, which under indentation says

4.1 Line Length
Avoid lines longer than 80 characters, since they’re not handled well by many terminals and tools.

Note: Examples for use in documentation should have a shorter line length-generally no more than 70 characters.

source : http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-136091.html#248

If I understood correctly (I may be wrong), one goal of this rule is consistency. I used to think that 80 was silly, but being able to go through source code written by a dozen different teams over last 7 years and not needing to re-size my window is a really nice thing. Consistent column width helps with the pace of reading code. Since I mostly worked with large monitor, I also realize that we are wasting lots of precious space. Consistent column width of 80 is simply too little. I personally use 120 unless the project I work already finalized a column width, in that case I go for consistency. One more reason people give for still using column with of 80 is that now days they are working with multiple files at once. For example, if you use standard column width you can fit couple of files across a reason and can compare them line by line, which I believe is real benefit. You can even do a three-way merge inspection on one screen without scrolling sideways. By the way this should not be done at cost of excessive wrapping. I understand that consistent columns make it easier to scan and read through text but it doesn’t mater whether it’s 80 or 120.

Why standard column width is 80 character, does it make sense

On closing note, I would say that consistency is nice and you must go for it but 80 or even 100 is too short. Many developer could probably live with 120 or even 150 though.  Our modern wide screen high definition LCD monitors can easily handle more. It is much more readable then the excessive wrapping because I personally find it much harder to read a wrapped line than just seeing the whole thing in one line. Of course this is just preference and others will feel different. 

Source: Does 80 Characters Column Width Still Make Sense in 2014?

Post author

Dustin Gurley is an Designer, Developer, Artist, Instructor, Critical Theorist and Systems Engineer. He has an extensive background working professionally with 2D/2.5D/3D Motion Graphics, Compositing, Film, Video, Photography and client-side performance techniques as it pertains to web development. Dustin recently completed work on his Master of Fine Art degree in Motion Media Design (Motion Graphics) from the Savannah College of Art and Design. Prior to beginning his graduate work, Dustin obtained a Bachelor of Art degree in Communication Studies with a concentration in Broadcast and Emerging Media from the University of North Carolina at Wilmington. In addition to design and modeling, Dustin enjoys toying with his view camera, working with scratch film, authoring media related material and contributing to various industry conferences. When not in front of a computer, Dustin can be found with his wife, Regina Everett Gurley. The couple enjoys dividing their time between their home just outside of Raleigh, North Carolina and the beautiful North Carolina coast. Currently, Dustin serves as the Lead Instructor of Internet Technologies for Wake Technical Community College in Raleigh, North Carolina.