Chapter 29. Refactoring

The practice of Refactoring code changes the structure (the design) of the code while maintaining its behavior. The relationship of Refactoring to other practices can be seen in Figure 29-1.

Figure 29-1. Refactoring depends on collective code ownership and automated developer tests to work well. Collective code ownership is needed because refactoring frequently affects other parts of the system. Automated developer tests are needed to verify that the behavior of the system has not changed after the design change introduced by the refactoring.

Image

Business Value

Refactoring increases flexibility and the product lifetime by ...

Get Agile Adoption Patterns: A Roadmap to Organizational Success 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.