Continuous Refactoring

As you continue to learn and improve, acquiring new knowledge, many lines of code become less and less appropriate with the passage of time. Although your initial solution solved the problem, you discover better ways to do so.

It’s clearly wrong to deny the code the chance to grow with knowledge and abilities.

When you have the opportunity, try deodorizing the smelly code.

  • Duplication, near and far
  • Inconsistence or uninformative names
  • Long blocks of code
  • Unintelligible boolean expressions
  • Long Sequences of conditions
  • Working in the intestines of other units(objects, modules)
  • Objects exposing their internal state