Live data from Hacker News

Does Column Width of 80 Make Sense in 2018?

hackernoon.com

11–20 of 40 posts

Re: Does Column Width of 80 Make Sense in 2018?

#11

We use 120 which seems to work fine even on small screens of about 11 inches.

120 on an 11 inch screen might be highly eyesight-dependent, especially if there is anything else on the screen at the same time. Not everyone worth hiring in the industry has optimal vision.

If someone has problems seeing small text, why are they using a such a small screen?

Re: Does Column Width of 80 Make Sense in 2018?

#12

Earlier quoted context omitted.

120 on an 11 inch screen might be highly eyesight-dependent, especially if there is anything else on the screen at the same time. Not everyone worth hiring in the industry has optimal vision.

If someone has problems seeing small text, why are they using a such a small screen?

Possibly for weight reasons? I'm in my early to mid 30s with decent near-distance eyesight, but adding my Dell 12.5" ultrabook to other things I routinely need to carry is increasingly starting to hurt. My next laptop bag will probably be a backpack to mitigate that, but it still doesn't make weight irrelevant.

Anyway, one doesn't have to go to that extent to make the point: as per the sibling reply from d_, even on a 17 inch monitor one can have issues with 120-character lines if viewing two files side by side (or 50% browser 50% editor).

Re: Does Column Width of 80 Make Sense in 2018?

#13
I have a few reasons why I still think 80 characters is a great limit.

Readability. It's difficult enough to read through long lines of normal text on a badly formatted website.

Naming. I could go on about this one. Namespacing was created for a reason, don't write any long names. This most often will make your code considerably shorter.

Formatting. If you have short names and you're still ending up will the long lines, you need to understand how to format your code properly.

Re: Does Column Width of 80 Make Sense in 2018?

#14
Did you ever wonder why magazines and newspapers use multiple columns? Because it's easier to read. When lines get too wide, it becomes harder to scan from the end of one line to the beginning of the next. There's solid science behind that, based on both physiology and observation of effects. For text, the recommendation is generally as low as 50 characters or as high as 75. Yes, reading code is a bit different, but not so much different that the same principles don't apply.

80 wasn't chosen, or kept so long, arbitrarily. To overcome the issues with both readability and ability to support side-by-side diffs or multiple files on smaller monitors or for those with poorer eyesight, there'd have to be a supportable positive reason to go higher. So far all I've seen is personal preference and occasionally support of bad habits (e.g. "trying to do too much in a single line" as another commenter put it). I just don't find that very convincing.

Re: Does Column Width of 80 Make Sense in 2018?

#16
If you have wide lines containing a lot of content, increasing the line spacing (or, leading) can help somewhat in readability. Unfortunately, terminals and editors don't always make this easy. Certainly not as easy as changing their display width.

You burn some vertical room -- all the more apparent with today's widescreen trend. But when you're trying to keep the strain from driving you crazy when reading a bunch of adjacent wide lines, it can help.

Also, other visual differentiators. Remember the old, wide band-printer reports, done on paper that varied background color every 5 lines or similar?

Re: Does Column Width of 80 Make Sense in 2018?

#17

Did you ever wonder why magazines and newspapers use multiple columns? Because it's easier to read. When lines get too wide, it becomes harder to scan from the end of one line to the beginning of the next. There's solid science behind that, based on both physiology and observation of effects. For text, the recommendation is generally as low as 50 characters or as high as 75. Yes, reading code is a bit different, but…

That argument falls apart when you consider indentation. Python code gets ugly fast when you’re just a few levels in.

Re: Does Column Width of 80 Make Sense in 2018?

#18
post #17

Did you ever wonder why magazines and newspapers use multiple columns? Because it's easier to read. When lines get too wide, it becomes harder to scan from the end of one line to the beginning of the next. There's solid science behind that, based on both physiology and observation of effects. For text, the recommendation is generally as low as 50 characters or as high as 75. Yes, reading code is a bit different, but…

That argument falls apart when you consider indentation. Python code gets ugly fast when you’re just a few levels in.

If you are indenting too much, there is probably a better way of designing your code. (I mean that, i'm not trying to be rude)

Re: Does Column Width of 80 Make Sense in 2018?

#19
Even when coding,splitting the IDE screen helps read the same code file better (each split screen showing a segment of the code). People split terminal screens using tmux and the like as well.

I think there is a solid argument for not consuming the entire column count of a screen,not sure if that's 80 though.

Post reply on HN