Technical debt management
Classify, measure and pay down technical debt deliberately instead of either ignoring it or asking for a rewrite.
14 min readDebt is a tool, interest is the problem
Ward Cunningham's metaphor is about borrowing: shipping a simpler design now and paying it back later can be a sound business choice. The trouble is interest: every change touching the debt costs more, and some debt accrues risk, not just slowness, such as an unpatched framework or a database with no failover. Martin Fowler's debt quadrant separates deliberate from inadvertent and prudent from reckless debt. Deliberate and prudent debt ('we will ship without sharding and revisit at 1 TB') is fine when recorded.
Make debt visible
Debt that lives only in engineers' heads cannot compete with features for time. Keep a debt register, one line per item, reviewed monthly. Link each item to the incidents and slow changes it caused; evidence wins prioritisation debates.
- What: the specific debt and where it lives
- Interest: what it costs now (hours per change, incidents, risk)
- Trigger: the condition that makes it urgent (traffic, contract, end of support date)
- Fix: the proposed remedy and a rough size
- Owner: a team, not a person
Prioritise by interest, not by ugliness
Engineers tend to want to fix the ugliest code. Fix the code with the highest interest instead: hotspots that change often and are complex. Plotting change frequency from git history against complexity per file quickly shows the 5% of files that cause most of the pain. Debt in code nobody touches can sit forever. Risk debt (end-of-life runtimes, missing backups, single points of failure) jumps the queue regardless of change frequency. Tools such as CodeScene automate this analysis, but a git log script works too.
Paying it down
Avoid the big rewrite; it nearly always takes longer than planned while the old system keeps changing underneath it. Prefer continuous paydown: a standing allocation of 15-20% of each team's capacity, the boy-scout rule on every change, and occasional focused sprints for large items with a clear before-and-after metric. Report progress in business terms, such as lead time for changes in the billing module dropping from nine days to three. Tie each focused paydown to a business metric so it competes fairly with features.
Key takeaways
- Debt is acceptable when deliberate and recorded; the interest is what hurts.
- Keep a debt register with interest, trigger, fix and owning team.
- Prioritise hotspots (high change frequency and complexity) and risk debt, not the ugliest code.
- Pay down continuously with a standing capacity allocation; avoid big-bang rewrites.
Sign in to track lessons and earn badges.