Vezi pagina în română

IT Glossary

Technical debt in software: what it means

The shortcuts and compromises accumulated inside an application — a loan whose interest is repaid at every future change.

6
sections
6
questions answered

Technical debt is the extra cost every future change to a piece of software pays because of shortcuts taken when it was written; Ward Cunningham introduced the debt metaphor in 1992, comparing shipping first-time code to going into debt, whose interest is the time spent working on not-quite-right code. You notice it on the invoice long before anyone names it. A change that took two days last year now takes two weeks, the estimate for a small feature arrives after an uncomfortable pause, and the developer explains that touching one screen breaks three others. That gap between what a change ought to cost and what it actually costs is technical debt: the accumulated effect of decisions that were fast at the time — copied code instead of shared code, no tests, an outdated framework nobody dared upgrade, a database design bent to fit an emergency. Some of it was rational. Shipping in six weeks to win a contract is a legitimate trade, exactly as borrowing money is. The danger is debt taken without a decision and never repaid, because the interest compounds silently until every change is quoted as a rewrite. For an owner the practical value of the term is that it converts a vague engineering complaint into something a budget conversation can handle: how much are we paying in interest, and which repayment buys the biggest reduction.

Why it matters for your business

Change costs stay predictable

Debt kept visible and repaid on a schedule stops the slow drift where every quote grows and nobody can explain why.

Fewer surprise defects

Most repeat bugs cluster in the oldest, least tested corners of a system — repaying there removes the source, not the symptom.

Business decisions made with facts

Naming the interest turns rewrite-or-repair into a comparison of numbers rather than a contest of confidence between suppliers.

Where the term comes from: Ward Cunningham, 1992

The metaphor comes from Ward Cunningham, in his experience report "The WyCash Portfolio Management System", presented at OOPSLA in 1992. The key passage: shipping first-time code is like going into debt. A little debt speeds development so long as it is paid back promptly with a rewrite. The danger occurs when the debt is not repaid, because every minute spent on not-quite-right code counts as interest on that debt. The "rewrite" there means rewriting the code as understanding of the problem improves, not rebuilding the product. The 1992 report says "going into debt" and does not use the phrase "technical debt"; the phrase settled later on the strength of the metaphor.

Martin Fowler gives simple arithmetic ("Technical Debt", 21 May 2019). A feature that would take 4 days on a clean structure takes 6 days on one full of cruft: the extra 2 days are the interest. Cleaning the structure costs 5 days: that is the principal. Paying it off only makes sense if more future features touch the same area, so the interest is paid again and again.

Types of technical debt: Fowler's quadrant

In "Technical Debt Quadrant" (14 October 2009) Fowler sorts debt on two axes: deliberate or inadvertent, prudent or reckless. That gives four types. Deliberate and prudent: ship now and pay after release, typical of an MVP that has to reach users. Deliberate and reckless: "we don't have time for design". Inadvertent and reckless: the team does not know good practice and does not know it is going wrong. Inadvertent and prudent: only after a year of work do you learn how the system should have been built.

Two conclusions from the same texts. A tangled mess is not prudent debt: it is reckless debt. And prudent debt in a part of the code nobody touches any more may never be worth repaying, because the interest is only paid when you work in that code. Technical debt is not a bug either: a bug means the application behaves wrongly now, debt means it behaves correctly but every change costs more.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

How technical debt is measured

Code analysis tools produce a number. In SonarQube (documentation "Understanding measures and metrics") technical debt is the sum of the remediation effort, in minutes, for the maintainability issues found in the code, shown in 8-hour days. The technical debt ratio divides that debt by the cost of developing all the code: the cost of one line (30 minutes by default) times the number of lines. The documentation example gives 6.4%. The default maintainability rating is A up to 5%, B from 5% to 10%, C from 10% to 20%, D from 20% to 50%, E from 50% up.

The limit is worth stating: a tool sees issues in the code, not an outdated framework or a badly bent data model. For an owner without a technical background the business measure is the trend of estimates: how long comparable changes take today against a year ago. Fowler notes that a team's productivity cannot be measured objectively, so this measure stays approximate too; the direction matters more than the exact value.

Paying it down without stopping delivery

Fowler recommends paying the principal gradually, in the areas changed most often, rather than in a separate clean-up campaign. In practice: a written register of known debt, code review on every change, automated tests, regular dependency updates and a fixed share of each stage booked explicitly in the contract. There is no universal percentage; the right one is set per project from the measured interest.

When the debt looks too large to repay in pieces, the question becomes refactor or rewrite. The comparison "Refactoring or rewriting from scratch", among the related terms, weighs the two paths.

Frequently asked questions

As a non-technical owner, how do I spot heavy technical debt?

Watch the estimates rather than the code. Small changes quoted in weeks, releases that need a weekend and a war room, the same defect returning after each fix, a supplier reluctant to let anyone else read the system, and nobody able to set up a copy for testing — those five signals together describe an application whose maintenance cost is about to dominate its value.

Is a full rewrite worth it to escape the debt?

It depends on what the debt costs in each part of the application and on whether the platform is still supported by its vendor. Measure first, then compare the two paths: refactoring module by module, and rewriting. The comparison "Refactoring or rewriting from scratch", among the related terms, sets them side by side.

How do we avoid accumulating debt on a new project?

Insist on automated tests from the first sprint, code review as a rule rather than a courtesy, and a written architecture decision log. Then book a fixed share of each stage for maintenance work in the contract and defend it when deadlines press. Debt is not prevented by good intentions; it is prevented by capacity booked before anyone needs it.

Who coined the term technical debt?

Ward Cunningham, the American programmer who also invented the wiki, introduced the debt metaphor in his experience report on the WyCash system, presented at OOPSLA in 1992. The report talks about "going into debt"; the phrase "technical debt" settled later on the strength of that metaphor.

What share of the budget should go to technical debt?

There is no standard backed by a primary source. The share is set per project from the measured interest: estimates that keep growing, and the debt ratio from tools such as SonarQube for the code itself. Write it into the contract as a fixed part of each stage, not as a verbal promise.

What is the difference between technical debt and a bug?

A bug means the application behaves wrongly now. Technical debt means it behaves correctly but every change costs more. The two are linked: over time debt raises the number of defects, because fragile changes set off chain reactions.