Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree. Shorter lines are more readable the same way narrow paragraphs in multi-column layouts are more readable, as it's easier to follow to the next line.

I'm not strict on the 80 column rule. Readability for code is a balance in intent for me first and foremost, but I also do try to keep lengths close to it.

I used to follow 2 source files side-by-side easily on a 16:10 monitor. I'm struggling to do that on my 16:9 now due to how long the lines are on my current codebase with a regular editor.

Comparisons are hourly occurrences for me. Long lines require scrolling or word-wrapping, either of which is just horrific. If I try the same on github, which wastes even more horizontal space, two source files are barely fitting side-by-side even with 80 columns.

I'm kind of surprised authors writing these long lines, which also will review those long lines in the future, and not put off by the inconvenience they're doing to themselves.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: