Restructuring an existing body of code, altering its internal structure without changing its external behavior.
- Read Introduce Explaining Variable
- Read Rename Method
- Read Extract Method
- Read Move Method
- Introduce an explaining variable.
- Rename a method.
- Extract a method.
- Move a method.
- Read Replace Method with Method Object
- Read Extract Class
- Read Introduce Null Object
- Read Replace Conditional with Polymorphism
- Read Ruby Science
- Replace a method with an object.
- Extract a class.
- Introduce a null object.
- Replace a conditional with polymorphism.
- Replace inheritance with delegation.