3 ms·
> 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
by pyre 9y ago
> 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.
- u801e 9y agoIt 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.
- gkya 9y agoToo 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.