Leadership2023-11 · 8 min

Technical Debt: When to Pay It Down and When to Let It Ride

Not all technical debt is worth paying. A framework for deciding what to fix and when.

Debt is a tool, not a sin

The phrase 'technical debt' gets used like a moral judgment, but debt is a financial instrument: you take it on deliberately to ship sooner, and you pay interest in slower future work. The question is never 'is there debt?' — there's always debt — but 'is the interest rate worth it?'

Shipping a feature with a hack that gets you to market is often the right call. The mistake is never revisiting it when it starts slowing the team down.

Pay down the debt you touch

The cheapest debt to pay is the debt in the code you're already changing. If a feature touches a messy module, clean that module as part of the work. It amortizes the cost into work you're already doing instead of a separate 'cleanup sprint' that never gets scheduled.

Separate cleanup sprints rarely work: they compete with features and lose. Fold the cleanup into the flow.

A simple triage

Ask three questions: Is this debt slowing us down every week? Is it making bugs more likely? Is it blocking a change we need soon? If the answer to all three is no, let it ride — it's archaeology, not debt. If the answer is yes, it's not debt, it's a bug.