Technical Debt: How to Name It So People Act
Debt is a useful metaphor until it means "code I dislike". The version that gets funded is measured in time, not in taste.
"We have a lot of technical debt" is one of the least useful sentences in software. It is almost always true, it is never actionable, and it is usually received as an opinion about taste rather than a statement about cost.
The metaphor is good. The way it is used is not.
Where the metaphor came from
Ward Cunningham introduced it in 1992, and his point was not that imperfect code is bad. His point was that shipping a simplified version now, in order to learn something you could not learn otherwise, is a reasonable trade β as long as you go back and repay it.
Debt, in his framing, is a tool. Sometimes borrowing is the right decision.
Where it goes wrong
Financial debt has a principal and an interest rate. Code debt has neither. There is no statement telling you how much you owe, and no fixed repayment schedule.
The interest is real, though. It is paid in slower changes, more bugs, longer onboarding, and the particular fatigue of working in a codebase where every small task requires three workarounds.
The word collapses when it is used for everything from "this variable name is bad" to "the architecture cannot support the product". Those need different responses, and lumping them together is why the conversation never ends with a decision.
Four kinds, and only one is debt
The quadrant popularised by Martin Fowler is the most useful sorting tool here.
Deliberate and prudent: "We know this is not the right design, we are shipping to hit the launch, and we will fix it in the next cycle." That is a real debt, with a real plan.
Deliberate and reckless: "We do not have time for design." That is not debt. That is a decision to skip work and hope.
Inadvertent and prudent: "Now that we have built it, we know how we should have built it." That is learning, and it is normal.
Inadvertent and reckless: nobody knew better yet. Also normal.
Only the first category is a loan. The second is negligence wearing the same word, and the last two are just the cost of doing something for the first time.
Naming it so it gets fixed
The sentence that gets funded has three parts: where it is, what it costs, and what happens if it is not paid.
Not "the billing module is a mess". Instead: "every change to billing takes an extra two days because invoice logic is duplicated in four places, and we have had three bugs this quarter from two of them drifting apart".
That sentence contains a location, a cost per change, a frequency, and a consequence. A manager can act on it. Nobody can act on "it is a mess".
The discipline is to express debt in the unit the business already cares about: time, defects, or risk. Not in aesthetics.
The register
Keep a short list. What it is, where it is, what it costs per month, who owns it, and when it will be repaid. Ten items maximum.
A longer list does not get read, and an unread list is a way of feeling organised without doing anything. When an item is paid, remove it. When a new one appears, something old must be retired or explicitly dropped.
Sometimes the answer is delete
Debt attached to code nobody uses is not debt. It is clutter. Deleting it is cheaper than repaying it, and the conversation about how to refactor it is a way of avoiding the question of whether it should exist.
Before estimating the repayment, check the usage. A surprising amount of technical debt is code with no callers.
The bottom line
Use the word for loans, not for dislike. Sort by the quadrant, describe the cost in time and defects, keep a list of ten, and delete what nobody calls. Refactoring and The Pragmatic Programmer both make the same point from different directions: the goal is a codebase that stays cheap to change, not one that looks elegant in a diagram.
π Recommended reading
Print editions of books covered on this site that go deeper into this topic.
See all 10 books ranked in βBest Programming Books for Developersβ β