Refactor cheat sheet

Long method

  1. Extract Method when something need to explain
  2. Reduce Local Variables and Parameters Before Extract Method
    • Replace Temp with Query EX
    • Introduce Parameter Object EX
    • Preserve Whole Object EX
  3. Replace Method with Method Object ✦ EX
  4. Conditionals and Loops
    • Decompose Conditional
    • Decompose Loop

Large class

...