Hacker News new | ask | show | jobs
by sneak 1869 days ago
I hard wrap at <=80 columns, and enforce those standards in codebases and in CI. Prettier's default is 80, and I don't change it.

I have three huge monitors, but long lines just makes most of the right-hand side of an editor window wasted.

Text files (source) are documents, and documents are much taller than they are wide: portrait orientation, like letter or A4. My two side monitors and oriented in portrait mode for this reason, and their quadrants (also portrait) are where I put editors.

I made this comment not to show my age, but to overcome the loudness bias of trends. There are plenty of us out here who still do it the old way, because the new way isn't better.

1 comments

The new way is to make the lines as long as a human needs it to be, and use the computer to automatically wrap them when you need a narrower view.
The Linux kernel style guide expresses a different rationale.