Refactoring Techniques — Small, Safe Steps
How to change the structure of code without changing what it does: tests that pin down today's behavior, one small step at a time with the tests run after each, six refactorings from Fowler's catalog with his own examples, and one pricing function taken through three of them in six languages.