Like a financial loan, technical debt is taken on deliberately: to ship the right feature on time, the team writes a quick solution and then “pays it off” — by reworking the code. Problems begin when debt is accumulated for years without paying the interest: every new change in such code costs more and more.
Where the term comes from
The term was coined by Ward Cunningham in 1992 in a report on the WyCash portfolio management system: he likened code shipped straight to production to a loan — a small debt speeds up development as long as it is quickly repaid by reworking, and every minute spent with not-quite-right code drips interest. Later Martin Fowler analysed the metaphor in detail and proposed the technical debt quadrant.
The technical debt quadrant
| Approach | Deliberately | Inadvertently |
|---|---|---|
| Prudent | debt is taken on to meet a release date, in the knowledge that it will be repaid: at a low interest rate this pays off | the solution seemed the best one known, and a better way was found later — this happens even to experienced teams |
| Reckless | a quick solution is adopted even though it harms quality and the right way was known | the team does not know basic design practices and does not notice how much debt it is taking on |
How it shows up and how to pay it off
- one change drags edits through dozens of places — a sign of module coupling;
- tests are written after the fact or not at all, because the code is hard to test;
- a temporary solution lives on for years, and nobody remembers any more why it is the way it is;
- developers spend more time understanding the code than building new features.
Interest is paid not on its own but while working with the code: neglected but stable code can be left alone, while frequently changed spots are worth keeping clean. The debt is repaid gradually, through refactoring in the course of everyday work. For example, a tangled module structure turns a four-day task into a six-day one — those two extra days are the interest on the debt; five days spent on cleaning it up will pay off if several similar tasks lie ahead. It helps to keep a record of debts: mark them in the code and in the tracker and plan their repayment alongside ordinary development, not “someday later”.
Sources
the term is written from these pagesVerified 8 Nov