The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition, 2nd Edition
by David Thomas, Andrew Hunt
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, ...
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