Technical debt
Technical debt is the future cost of rework created by choosing a quick or limited technical solution now, such as manual workarounds, outdated components or undocumented code. As with financial debt, interest accrues in the form of slower change and a higher chance of failure until the shortcut is repaid.
What it is
Technical debt is the cost of the extra work that a shortcut in a technical solution creates for later. A team accepts a quicker or narrower design to deliver sooner, and the gap between that design and a sound one has to be closed at some point. The comparison with financial debt is deliberate: the shortcut is the loan, the rework is the repayment, and the slower and riskier changes in between are the interest.
Debt takes several forms:
- Code debt: logic that is hard to read, duplicated or without tests.
- Documentation debt: systems that only their original authors understand.
- Platform debt: software and components that have fallen behind supported versions.
- Process debt: manual workarounds and file transfers that stand in for a proper interface.
- Data debt: inconsistent definitions and unresolved quality issues between systems.
Debt is not always a mistake. A deliberate shortcut, recorded and planned for repayment, is a decision. Debt that nobody recorded is the harmful kind.
Why it matters
Each unrepaid shortcut makes the next change slower, because developers must work around it. Defects become more likely, and a failure in an old component is harder to diagnose.
In financial institutions the debt reaches operations and supervision. The EU digital operational resilience rules require a documented framework for managing risk from information and communication technology, and call for a specific risk assessment of legacy systems on a regular basis. Technical debt is the usual reason a system is classed as legacy.
Worked example
Illustrative numbers. A payments team can add one more message type in 10 working days on a clean design. The existing system has a shortcut: validation rules are copied into four modules.
- Adding the message type means changing all four copies, so the work takes 16 days, not 10.
- The extra 6 days are the interest on this one change.
- Over a year the team makes 5 such changes, so the interest totals 30 days.
- Repaying the debt means merging the four copies into one module, estimated at 25 days.
- After repayment, each change returns to 10 days. The repayment cost of 25 days is below the 30 days of yearly interest, so the team schedules the rework.
How to read it
Debt is judged by the interest as well as the size. A large debt in a stable component that nobody changes costs little. A small debt in a component changed every week costs a lot.
Assumptions
- The cost of rework can be estimated well enough to compare with the interest.
- The affected component will remain in use long enough to repay the effort.
- Tests exist to show that the repair has not changed behaviour.
Who uses it
- Banking product owners place debt repayment in the backlog beside feature requests and weigh the two.
- Programme managers account for debt in plans and decide when a programme includes clean-up work.
- Quantitative developers record shortcuts in code and refactor under the protection of tests.
- Change managers assess how debt raises the risk and duration of a planned change.
Common confusions
- Technical debt is not the same as a defect. A defect is wrong behaviour now, while debt is a structure that makes future work costly.
- It is not only old systems. A system built under time pressure can carry debt from its first release.
- Repayment is not a rewrite. Debt is usually reduced in small steps tied to the changes already planned.
- Debt in a spreadsheet or script counts. End-user applications carry it too, mostly as missing documentation and testing.