The process of refactoring has a lot in common with the process of fixing defects. For more on fixing defects, see Fixing a Defect. The risks associated with refactoring are similar to the risks associated with code tuning. For more on managing code-tuning risks, see Summary of the Approach to Code Tuning.
Fowler, Martin. Refactoring: Improving the Design of Existing Code. Reading, MA: Addison Wesley, 1999. This is the definitive guide to refactoring. It contains detailed discussions of many of the specific refactorings summarized in this chapter, as well as a handful of other refactorings not summarized here. Fowler provides numerous code samples to illustrate how each refactoring is performed step by step.
3.143.17.27