I always thought that it would be very nice if we could compare text files in the document library portlet, just like we developers do with different versions of source code. I finally implemented this diff tool and had a lot of fun!
For the first time I think I've made something similar to test-driven development and it'd proven to be very useful for this kind of algorithm in which a small change can break something else that you didn't know it was related.
You can also compare other file types besides .txt, like .doc, .odt or .html. Thanks to the OpenOffice integration we made some weeks ago.
Some aesthetic changes need to be done, as Jorge advised me, Wikimedia's way of choosing different versions is better, it has two columns of radio buttons instead of one column of checkboxes. The way the differences are shown also needs to get better, suggestions please.
Here are the screenshots:
...and displaying the result:


