Appendix A. Answers to Selected Questions
Chapter 2. The Refactoring Cycle
Most refactorings reflect this attitude (safety even in mid-refactoring). Consider our Encapsulate Field example. Even this simple program compiled three times. Or look at Extract Method: rather than simply cutting the old code and moving it, Fowler's catalog suggests copying the code and adjusting it before deleting the old version. | |
A.
|
Get Refactoring Workbook 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.