Definition

Definition#

Refactoring:

Restructure existing code to increase usability, reusability, compatibility and performance without changing its external behavior.

Important

Nobody writes a codebase that respects strictly the Separation of Concerns (SoC) principle from scratch!

Important

Nobody writes DRY, well-structured and well-documented orthogonal code on a first attempt!

Serialize Problems:
  1. Focus on implementing the routine

  2. Refactor data out

  3. Refactor environment variables out

  4. Refactor configuration out

  5. Refactor remaining codebase into minimal script plus functions & classes

  6. Write tests

  7. Refactor for performance

  8. Refactor for usability

  9. Refactor for …