Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.47 KB

refactoring.md

File metadata and controls

38 lines (29 loc) · 1.47 KB

Refactoring

Critical learning

Validation

You know everyday refactoring when you can (safely):

  • Introduce an explaining variable.
  • Rename a method.
  • Extract a method.
  • Move a method.
  • Replace a method with an object.
  • Extract a class.
  • Introduce a null object.
  • Replace a conditional with polymorphism.

You know advanced refactoring when you can (safely):

  • Replace inheritance with delegation.

Ongoing reference