Refactoring Toward a Pattern, One Small Step at a Time
With old code pinned down by tests, you can reshape it toward a pattern in steps so small that each one keeps every test green, running the tests after every step and undoing any step that turns one red; the gym's plan if chain becomes a dictionary of pricing rules, and a new family plan becomes one line.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- "Red", "Green", "Refactor", OOP, Refactoring, software-development, Strategy Pattern