News for hackers. Stuff that matters.
Re:Developers who use spaces make more money than those who ... by u801e on Thursday June 15, 2017 @06:24PM (#14564983)
> But I haven't seen a good argument for 80-character line limit other than "that's the way it's always been done."

Having shorter lines makes reading diffs easier (whether it's unified, context, or split diffs).

> The "official/accepted" git commit message format limits the commit message title to 50 characters, and the message body to ~80 characters.

It's actually 72 characters for the commit message body for a similar reason that you mentioned for emails. Specifically, it's because the git log output indents the commit message relative to the diff (when using the -p option).

Re:Developers who use spaces make more money than those who ... by pyre on Thursday June 15, 2017 @09:55PM (#14566076)
> Having shorter lines makes reading diffs easier (whether it's unified, context, or split diffs).

But is the difference that significant between 80-, 100- and (say) 120-characters wide? I personally wrap at 100 characters, I don't find that I'm fatigued by looking at diffs of the code.

Re:Developers who use spaces make more money than those who ... by u801e on Friday June 16, 2017 @04:25AM (#14567419)
It is subjective to some extent, but I do find that those who don't wrap their code at 80 characters aren't really particular in terms of wrapping their code at all. So most lines may be between 70 to 130 characters, but there may be the occasional line that's a bit longer.

Plus, it also depends on the tools one uses to review code. Github, for instance, will present a horizontal scroll bar for the unified diff view if there are lines that are too long. Using that scroll bar is not something I appreciate having to do when reviewing code.

Re:Developers who use spaces make more money than those who ... by gkya on Friday June 16, 2017 @09:39AM (#14568809)
Too long lines are harder even in prose as they make you confuse the start of the next line when you reach the end of one.