News for hackers. Stuff that matters.
Re:Controversial Programming Opinions (2012) by josephg on Friday December 04, 2020 @03:46PM (#25307678)
At google (at least when I was there) they have a hard rule of 120 character lines or something. (I think it varies by language).

I thought the rule was ridiculous - until I realised one of my colleagues had set his computer up with 3 tmux sessions side by side, each perfectly fitting a 120 column code window. He never had to scroll sideways, and he was very productive with his setup. The fact he knew exactly how wide to make his terminals made his workflow much better.

I don’t follow that rule on my own projects, beyond keeping line lengths “reasonable”. But that rule might be on to something.

Re:Controversial Programming Opinions (2012) by elektronaut on Friday December 04, 2020 @09:51PM (#25311240)
This is why I’ve come around on the 80 character rule after switching to Emacs, fitting four buffers side by side on my 27” monitor just works.

120 characters/3 columns is great for more verbose languages, but I find it a bit too wide for a vertical split on a 15” laptop monitor.

Re:Controversial Programming Opinions (2012) by moron4hire on Friday December 04, 2020 @10:34PM (#25311474)
I just enable word wrap in my editor
Re:Controversial Programming Opinions (2012) by pc86 on Friday December 04, 2020 @04:03PM (#25307936)
I don't think the fact that it worked for one guy (or more accurately, that he adjusted his workflow according to this rule) makes it a good rule by definition.
Re:Controversial Programming Opinions (2012) by Brian_K_White on Friday December 04, 2020 @05:19PM (#25308994)
It's not that they contorted their workflow to satisfy some arbitrary rules, it's that the fact of the dependable consistent rule made it possible for them to formulate an efficient dependable consistent workflow at all.