Skip to content

Refactoring Legacy Code

Latest
Compare
Choose a tag to compare
@mohamed-taman mohamed-taman released this 30 Sep 16:12
· 5 commits to master since this release

This Kata is about refactoring the legacy code to simplify it, then add the new feature requests to the refactored code. At the same time, pin-down tests help us to keep the legacy code behavior not altered.

Techniques used:

  1. Refactoring: Extract Constant strings.
  2. Refactoring: Extract Constant Numbers.
  3. Refactoring: Extract Variable/Extract Method.
  4. Refactoring: Simplify Arithmetic.
  5. Refactoring: Simplify Booleans.
  6. Refactoring: Group-Related Logic.
  7. Refactoring: Final Touches.
  8. Add the new behavior to refactored code.