Hacker News new | ask | show | jobs
by sikosmurf 3701 days ago
Personally, I prefer 120, but I realize it is a preference. That said, I am irritated beyond belief when there is a project mandate that all code be 80 characters and no more. Pretty much everyone has a widescreen monitor these days, and the 80 character limit is a relic from the 4x3 monitor days.

Beyond that, I feel like a character limit that low puts a disincentive on the creation of meaningful variable names and function names. Maybe it's a hold-over from my Java days, but I really strive to name my functions and methods something meaningful. When I'm limited to 80 characters, plus proper tabbing, plus general flow control... it becomes incredibly difficult to stay under 80.

2 comments

If you use tiling window managers, there is still a good reason to stick with 80.
I've been using some form of tiling manager for 4+ years now (herbstluftwm at the moment, though with stints using i3, awesome, dwm, bspwm and xmonad) and I've never had a problem with lines over 80 characters. I tend to use small font sizes, but I can't recall ever getting into a situation where 100 character lines were an issue. I can't recall any of the mangers I've used having a key combo to open up an 80 character wide terminal, though I could be forgetting.
Do you find herbstluftwm to be better than i3? If so, in which way? I've been using i3 for a few years now, I'm VERY happy with it and I'm curious if/how [0] some other tiling wm can be better.
I've been a huge fan of herbstluft since I started using it. Herbstluft's 'frames' definitely take a little while to adjust to and it took a few days to figure out how to fit hlwm's tools to my normal workflow, but I find the manual partition/automatic tiling within partitions system to be my favorite paradigm by far.
What a widescreen monitor doesn't fix is having to move your head to read those 120 characters. With only 80 characters you only have to move your eyes.
I usually don't have to move my head to read 120 character lines.
For reference: on an iPad, I get 61 characters on a line in the HN input field, and it is about half the screen width in landscape mode. So, an iPad can do about 120 fixed-width characters on a line. I don't think I move my head when reading iPad text in landscape mode.

I expect that people with somewhat normal vision will say the same.