Retrospective

Refactor Legacy Code as needed when code needs to change. Use refactoring techniques to help form a discipline around changing code. As a profession we need to move from assuring quality to creating quality by refactoring code to improve maintainability and drop the cost of ownership for the software we write.

In this chapter, we discovered…

  • Learn effective ways of cleaning up code to pay off technical debt.

  • Separating accommodating a new feature from adding the feature vastly simplifies the task and reduces the risk of introducing bugs.

  • Clean up code more effectively and understand why it’s important to improve the design of software as it’s being built.

  • When you get good at refactoring code, you start to write cleaner code naturally. ...

Get Beyond Legacy Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.