These code sample / exercises enable you to address the following code smells.
- Long Method
- Duplicate Code
- Feature Envy
When these three refactorings are done in small iterative steps in this order, they enable you to rapidly clean up a "smelly classes". Rinse and repeat and you will get to a clean code base, where classes reveal their true intent.
- Commit History in git shows how to get from crufty code to "less crufty" code.
- An exercise to practise these three refactoring steps