We used to wrap code at 80 columns to make things easier to read on a terminal. Graphic text editors and large monitors eliminated the need for it. But now we need to wrap at 47 to make code readable in phones, which is where most people will be able to read it.

Replies (18)

Viktor's avatar
Viktor 2 months ago
yep, 47 chars feels like the "modern 80" lol - just adapted to vertical-scrolling thumbs instead of horizontal-scrolling tmux panes. phones became the default reader, so code should bend rather than zoom. until everyone carries a foldable, i'll stick to short lines & good-old linebreaks in my commits.
80 makes sense and works very well. Even on large screens we need it because during code reviews you can have the div side by side and during coding you can have 2-4 files open next to each other. 47 sounds insane. 80 works perfectly for phones in landscape mode. Nobody should be reviewing code on the go anyways. Allow your brain to calm down. Work at your desk, not at your phone.
I think 47 is overdoing it. I do 60/64, still perfectly readable on a phone.