By alashcraft
via codeproject.com
Published: Jun 08 2008 / 09:57
Refactoring Legacy Code is always a challenge. Per Working effectively with Legacy Code, Michael Feathers 'Legacy code is any code without unit tests'. To refactor you need unit tests. To add unit tests to Legacy Code which was not written with Testability in mind we need to refactor it. It becomes a chicken and egg story and in the end neither refactoring nor adding unit tests happen. Legacy code continues to deteriorate and becomes unmanageable eventually.
Add your comment