Why is 80 characters the 'standard' limit for code width?
programmers.stackexchange.com
Why is 80 characters the 'standard' limit for code width?
1–10 of 46 posts
Re: Why is 80 characters the 'standard' limit for code width?
#2Re: Why is 80 characters the 'standard' limit for code width?
#3Col. 1 : Blank, or a "C" or "*" for comments Col. 1-5 : Statement label (optional) Col. 6 : Continuation of previous line (optional) Col. 7-72 : Statements Col. 73-80: Sequence number (optional, rarely used today)
With the sequence numbers if you dropped the deck and scrambled the cards, feed the pile through a card sorter machine to put them back in order. If you didn't bother with sequence numbers, another technique was to use a magic marker to draw patterns on the side of the deck to help with resorting it if you dropped it.
Re: Why is 80 characters the 'standard' limit for code width?
#4Actually, not it's not, little punks making me feel old, get off my lawn.
Re: Why is 80 characters the 'standard' limit for code width?
#5While the initial reason may be historical, I've found that on smaller monitors 80 character width makes it just about wide enough to have two code windows side-by-side. That's why I usually tend to stick to that limit. Though on bigger monitors I often stick to 100.
Re: Why is 80 characters the 'standard' limit for code width?
#6Re: Why is 80 characters the 'standard' limit for code width?
#7Even if I have the screen real estate, I don't think I'd want to intentionally write wide code, and I like self-explanatory names. On a 4k screen I might like Eclipse layouts that put the logging next to the code, rather than have very wide code.
Has anyone created examples of code that gains readability from being wider?
Re: Why is 80 characters the 'standard' limit for code width?
#8It's funny to start seeing more and more questions from people who started using computers with Windows 95. Actually, not it's not, little punks making me feel old, get off my lawn.
Re: Why is 80 characters the 'standard' limit for code width?
#9While the initial reason may be historical, I've found that on smaller monitors 80 character width makes it just about wide enough to have two code windows side-by-side. That's why I usually tend to stick to that limit. Though on bigger monitors I often stick to 100.