4 ms·
> * Diff works best when things are single idea per line, and when control structures don't get in the way.* Has "coding to a diff" changed your coding style?
by cpeterso 15y ago
> * Diff works best when things are single idea per line, and when control structures don't get in the way.*
Has "coding to a diff" changed your coding style?
When I know that I will have to prepare a diff for code review, I find myself writing code in a way that produces a cleaner diff. I use more vertical whitespace to collect related code into logical "paragraphs" and keep from stepping on other code when diffing.