Skip to content

How to manage it

Record debt, allocate budget, refactor continuously.

Debt discipline

  1. Track every deliberate shortcut

    // TODO: refactor - see issue #123. Debt without a ticket is forgotten debt.

  2. Allocate 20% of each sprint

    Dedicate capacity to paying down the worst debt.

  3. Refactor with tests

    Never refactor without tests. Debt + no tests = rewrite.

  4. Boy scout rule

    Leave every file better than you found it. Small continuous improvements.

  5. Measure code churn

    Files modified every sprint are debt hotspots. Prioritize them.