Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 488 Bytes

File metadata and controls

19 lines (18 loc) · 488 Bytes

Refactoring

This is an exercise designed to practice the skill of detecting Code Smells and refactoring the code to fix the problems. Solution is also included.

Code Smells covered:

  1. Long method
  2. Duplicate code within class
  3. Duplicate code within method
  4. Duplicate code across classes
  5. Magic Number
  6. Feature Envy (2 instances)
  7. Improper Naming
  8. Dead Code
  9. Lazy Class
  10. Switch Case
  11. Indecent Exposure
  12. Collapse Hierarchy (Lazy Class)
  13. Long Parameter List