3 ms·
If you’re going to have this argument, it’s important that you do it right. The question is not precisely “how wide can I display code”. The question is “how w
by hinkley 6y ago
If you’re going to have this argument, it’s important that you do it right.
The question is not precisely “how wide can I display code”. The question is “how wide is a side by side diff?” That is the worst case scenario for code reading, and it is the one where the worst classes of errors can slip in (one where neither author actually wrote the bug).
Linus answers this indirectly: you can easily diff 100 characters on a monitor smaller than his. What he says instead sounds like an invitation to suggest 200 column source code, which most definitely is a problem to diff.
- pas 6y agoUsing softwrap when looking at diffs seems natural. After all you already rely on tools to show you the meat of the diff, the changed lines, and preferably the tokens inline. Plus I find that most of the time I just use the default patch view, not the side by side one when doing review.