Testing
TDD and Refactoring: Characterization Tests for Legacy Code
Characterization tests (Michael Feathers, "Working Effectively with Legacy Code") capture what legacy code currently does, not what it should do. Write them before touching legacy code, use them as a safety net during refactoring, then replace them with proper unit tests once the code is clean. The golden