4 ms·
> Many people in our profession write code that's less that 80 characters per line because that's how much you could display on terminals in the 70s. It's _als
by zeveb 10y ago
> Many people in our profession write code that's less that 80 characters per line because that's how much you could display on terminals in the 70s.
It's _also_ a very reasonable & readable amount of text in a row. There's nothing wrong with that.
- zzzcpan 10y ago> It's _also_ a very reasonable & readable amount of text in a row Presumably, that's why they used 80 characters in the first place, as anything more is too hard to read.
- Gruselbauer 10y agoIsn't it more so it is readable inside a phone display to an ssh session as well as a fat 4K screen? That's my reason at least. Can always scale up something, but line breaks I didn't make myself make me want to commit unspeakable atrocities in the name of a demonic deity taking the earthly form of a little girl. Or, you know, angry.
- TheOtherHobbes 10y ago132 column displays were common by the end of the 1970s. 80 column displays date back to the early 1970s. I started coding on an 80 column display, and I have no doubt at all that a modern 16:9 monitor that can display a double page PDF or a web page with a variety of fonts is a much better display device.
- lmm 10y agoIt was 80 columns to match a punch card, AIUI, not a decision on readability grounds at all.
- robotresearcher 10y agoAnd why was a punch card 80 columns?
- lmm 10y agoIt sounds like that was the limit they could fit in the available space given the technology (earlier versions had fewer columns, the "upgrade" to 80 was based on using new narrower holes) - the width was set by wanting to match existing infrastructure for money.
- jimktrains2 10y agoNot only is 80char more readable, as a sibling comment said, but it also allows addition pieces of code to be displayed side-by-side on a laptop screen. To be fair, 120char wide code is also not too bad for this purpose and readability.