Topic 40 | Refactoring |
Change and decay in all around I see...
As a program evolves, it will become necessary to rethink earlier decisions and rework portions of the code. This process is perfectly natural. Code needs to evolve; it's not a static thing.
Unfortunately, the most common metaphor for software development is building construction. Bertrand Meyer's classic work Object-Oriented Software Construction [Mey97] uses the term “Software Construction,” and even your humble authors edited the Software Construction column for IEEE Software in the early 2000s.[55]
But using construction as the guiding metaphor implies the following steps:
-
An architect draws up blueprints.
-
Contractors dig the foundation, build the superstructure, ...
Get The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition, 2nd Edition 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.