/RefactoringExamples

Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

Chapter 6 A First Set of Refactorings

  • EXTRACT FUNCTION
  • INLINE FUNCTION
  • EXTRACT VARIABLE
  • INLINE VARIABLE
  • CHANGE FUNCTION DECLARATION
  • ENCAPSULATE VARIABLE
  • RENAME VARIABLE
  • INTRODUCE PARAMETER OBJECT
  • COMBINE FUNCTIONS INTO CLASS
  • COMBINE FUNCTIONS INTO TRANSFORM
  • SPLIT PHASE