Refactoring
An important technique that differentiates XP from traditional development methods is refactoring, which is the continuous rewriting of program code in small, precisely-measured steps without affecting any visible functionality. In short, refactoring adds nothing to the functionality, but simplifies the design. By regularly executing rewriting steps, the overall effect is often astonishing.
In the meantime, some 70 rewrite rules have been discovered and documented. They carry names such as introduce null object, replace temp with query, and replace conditional with polymorphism. The preconditions for the successful application of refactoring is that there are unit tests available that can be carried out automatically after every ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access