News for hackers. Stuff that matters.
Re:The Tyranny of the Diff by cpeterso on Monday April 09, 2012 @12:54AM (#3815879)
> * 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.

There are no comments on this comment yet.