Table of Contents
Preface
Part 1: Introduction to Refactoring
1
What is Refactoring?
What do we mean by refactoring?
Refactoring and clean code
Misconceptions about refactoring
Why you should consider refactoring
Improving the design of your software
Maintainability and scalability
Understanding, avoiding, and fixing bugs
Faster development
When you should refactor
The “Rule of Three”
Preparatory refactoring for smooth feature implementation
Refactoring for bug fixing
Comprehension refactoring
The “Boy Scout Rule”
Planned refactoring
Long-term refactoring and “Branch by Abstraction”
Refactoring in a code review
What you should refactor
Impact analysis
Risk assessment
Value estimation
Prioritization matrix
Further considerations
Refactor or rewrite? ...
Get Refactoring in Java 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.