Nithin Bekal

Posts About Notes Slides

Refactoring

When to refactor:

  • Duplication - violation of DRY
  • Non-orthogonal design
  • Outdated knowledge (changes in reqs)
  • Performance

How to refactor effectively

  • don’t refactor and add functionality at the same time
  • have a test suite - run it as often as possible
  • take short, deliberate steps