4 ms·
I'm one of those that sticks with 80x25 because I had decades of it influence me. I do understand, though, that it's dumb, and wouldn't force it on others.
by tyingq 7y ago
I'm one of those that sticks with 80x25 because I had decades of it influence me.
I do understand, though, that it's dumb, and wouldn't force it on others.
- yoloClin 7y agoWhen I started conforming to it, my code became a lot more concise. I'd advocate every developer conforms to PEP-8 rules (80-char, nesting limits, etc), at least for a 3-12 month period. They'll be a better developer for it.
- rlayton2 7y agoThat's a great idea. Have an opinion about the standard from experience, not gut feel.
- gooseyard 7y agoI stick with it because I read the newspaper and eventually discovered that the wider a column is, the harder it is to read. I understand that it's not quite the same with code, and I don't know that there's any significant difference between 79 and 81 columns, but I never found anything that I couldn't get to work with 80 with a few minutes thought, so why not.
- reaperducer 7y agoYep. Newspapers are laid out in columns because that's simply easier for people to read. Since you're into dead tree editions, here's a fun fact you may not know: The fibers in newsprint are aligned vertically so that you can easily tear out an article vertically along its column. Tearing horizontally cleanly is significantly more difficult. Source: Worked for two major newspaper companies.
- emmelaich 7y agoProbably vertical for strength too. They need it to be pulled the rollers in the printing machine.
- ggus 7y agoPaper in books is also aligned the same way, to resist better to humidity. Humidity enlarges the fibres, but doesn't get them longer. In a humid environment a book grows wider but not taller. If the paper is oriented the other way, the paper would grow taller and the spine of the book, which is stitched and glued, would force the paper to warp and became ondulated.
- pcmonk 7y agoIt lets me have 3-4 columns of code on a standard laptop or 8 columns on a 4k monitor, which is a huge productivity win.
- yellowapple 7y agoOnly about 2.5 for me (at my font size on a 1920×1080 screen), but it's a productivity win regardless, and it's a massive productivity sink when I have to work with code written without that constraint. An 80+ character line is also a code smell for me; if a statement is so complex that it pushes past the 80 character mark and it can't be split into smaller chunks on their own lines, then I know for sure that something needs refactored (whether it be the statement itself or the nested control structures around it).
- pcmonk 7y agoYeah, I actually keep my editor columns at about 65-70 with :set nowrap. I find this gives me appropriate pressure to write shorter lines, but if I go past the end I've got another 10 columns or so until I hit 80.
- emmelaich 7y agoIt's not really dumb. It's good to have somewhat of a standard. If there's anything wrong with it, it's that it's too big! Ideally we might have settled on something like newspaper column widths for readability - which are way less than 80.