Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.37 KB

refactoring.md

File metadata and controls

38 lines (27 loc) · 1.37 KB

Refactoring

Restructuring an existing body of code, altering its internal structure without changing its external behavior.

Beginning Refactoring

You should be able to

  • Introduce an explaining variable.
  • Rename a method.
  • Extract a method.
  • Move a method.

Intermediate Refactoring

You should be able to

  • Replace a method with an object.
  • Extract a class.
  • Introduce a null object.
  • Replace a conditional with polymorphism.
  • Replace inheritance with delegation.

Ongoing Reference