News for hackers. Stuff that matters.
Re:The Tyranny of the Diff by tsewlliw on Monday April 09, 2012 @11:00AM (#3817216)
I work on a code review tool, and we've been shipping patience diff for a few years now, and it has really cut down on complaints about the resulting diff being incomprehensible, and on the one or two occasions people have complained its been really easy to point at the data explain why - and that has always been because there was a "missed opportunity to write better code" or a big pile of copy-pasta.

I know its sort of a silly argument to make, but LCS's algorithmic intiution leaves me cold.

Re:The Tyranny of the Diff by cpeterso on Monday April 09, 2012 @04:38PM (#3819110)
Very interesting. Is patience diff your tool's default algorithm? Do you support diff algorithms (perhaps for different file types) other than patience or LCS?
Re:The Tyranny of the Diff by tsewlliw on Monday April 09, 2012 @05:26PM (#3819318)
If by default you mean only available, yes :) Non-code review is really what is driving my delving into non-crlf delimited diff elements. Breaking prose into big enough chunks to diff well and still find small copies is my current target. Once it works for prose I might try to use it on code.

I've been itching to figure out how to combine perceptual hashing, computer vision like opensurf, and stable marriages to do something really interesting for image diffs, but until I can shed some less sexy responsiblities I don't think I'll get to play with that.