5 ms·
We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they m
by guitarbill 8y ago
We also enforce this. Not for personal or aesthetic reasons, but to keep code reviewers sane and let them review code side-by-side (as many devs do) when they might not have an ultra-wide monitor available.
- ncmncm 8y agoAnything that makes code review harder or less comfortable is deeply destructive to code quality. It is entirely hard enough to get people to do meaningful review without kneecapping them by obliging them to side-scroll just to see what changed.
- quink 8y agoUnified diffs beat side-by-side the majority of the time IMO.
- rightbyte 8y agoWhat tabsize do you enforce and how many meetings were it before a number was agreed upon?
- guitarbill 8y agoDoesn't matter. What matters is consistency in the repo. To this effect, it's important the CI process enforces it - code reviewers could never do it, and it's a waste of their time. I highly recommend auto-formatters like Black, Prettier, Gofmt, etc. They take so much cognitive load off devs and reviewers, it's completely worth it. (In practice, this means whoever sets up the CI process gets to decide :P)