Refactor Listing
Chapter 06 - A First Set of Refactorings
Change Function Declaration (124)
- Renaming a Function - Simple
- Renaming a Function - Migration Mechanics
- Adding a Parameter
- Changing a Parameter to One of Its Properties
Introduce Parameter Object (140)
Combine Functions Into Class (144)
Combine Functions into Transform (149)
Chapter 07 - Encapsulation
Replace Primitive with Object (174)
Chapter 08 - Moving Features
Move Statements into Function (213)
Move Statements to Callers (217)
Replace Inline Code with Function Call (222)
Replace Loop with Pipeline (231)
Chapter 09 - Organizing Data
Replace Derived Variable with Query (248)
Change Reference to Value (252)
Change Value to Reference (256)
Chapter 10 - Simplifying Conditional Logic
Consolidate Conditional Expression (263)
Replace Nested Conditional with Guard Clause (266)
Replace Conditional with Polymorphism (272)
Chapter 11 - Refactoring APIs
Separate Query from Modifier (306)
Replace Parameter with Query (324)
Replace Query with Parameter (327)
Replace Constructor with Factory Function (334)
Replace Function with Command (337)
Replace Command with Function (344)
Chapter 12 - Dealing with Inheritance
Pull Up Constructor Body (355)
Replace Type Code with Subclasses (362)