This repository contains practice code following Martin Fowler's "Refactoring" book. The art of refactoring has three steps:
- Decomposing the original function into a set of smaller functions
- Separating concerns, such as calculation logic from formatting code.
- Introducing a polymorphic calculator instead of if/else or switch statements