refactoring

Complete

Concept

Refactoring

  • improving the internal structure of code in small steps without modifying its external behaviour
  • improving the code quality
  • makes it easier to spot hidden bugs
  • improve performance

Common catalogs

  1. Consolidate Conditional Expression
  2. Decompose Conditional
  3. Inline Method
  4. Remove Double Negative
  5. Replace Magic Literal
  6. Replace Nested Conditional with Guard Clauses
  7. Replace Parameter with Explicit Methods
  8. Reverse Conditional
  9. Split Loop
  10. Split Temporary Variable

Code smells

  1. Long Method
  2. Large Class
  3. Primitive Obsession
  4. Temporary Field
  5. Shotgun Surgery