Technical debt and legacy software: what it is and when to replace it
Technical debt is the accumulated gap between how a system is currently built and how it should actually work to keep serving your organisation well. Every system builds it up; it only becomes a problem when the interest (the time and risk of every subsequent change) exceeds the value the system still delivers. This page explains where the concept comes from, which signals indicate a system is due for modernisation, and how to approach it without bringing the organisation to a standstill. Want to know more about choosing between building your own and buying a package? Also see build vs buy: choosing custom software or a package.
Request an independent assessment Go to the signalsWard Cunningham's debt metaphor
The term technical debt does not come from an academic paper, but from a 1992 experience report by software developer Ward Cunningham, written for the financial software company WyCash.
The original idea
Cunningham wrote something along these lines: shipping first-time code is like going into debt. A little debt speeds up development, as long as you pay it back in time with a rewrite. The danger only arises when the debt is not repaid. He used the metaphor to explain to non-technical stakeholders at WyCash why time had to be set aside for refactoring on a structural basis, not to excuse sloppy work.
How the term is used today
In Cunningham's own formulation, it was about the distance between your understanding of the domain at the time of building and the understanding you have now. In today's more common, broader usage, the term mainly stands for brittle design: code and architecture that are hard to change, so that every subsequent change takes longer than the last.
Three places where technical debt builds up
In practice, a distinction is made according to where the debt sits, because that determines how expensive and risky it is to pay off.
Code debt
Messy or duplicated code, missing tests, quick patches that were never cleaned up. Usually the cheapest to resolve: refactoring without changing the outside of the system.
Architecture debt
The system's design no longer fits how it is used: a monolith that really needs to scale independently, or modules so intertwined that one change ripples everywhere. This calls for a redesign, not a quick fix.
Infrastructure debt
The language, framework or platform the system runs on is end-of-life, or almost nobody knows it any more. This is where legacy systems such as Delphi, COBOL, AS/400 and WinCC typically end up.
When does legacy software become a risk?
Not every older system is a problem. It becomes urgent as soon as one of these four factors comes into play.
Security: outdated language, greater risk
Microsoft and Google independently report that around 70% of the serious security vulnerabilities they patch each year can be traced back to memory-safety problems in languages such as C and C++. Systems that have run on these for decades and are no longer actively maintained accumulate that risk with no new patches to offset it. How that plays out became clear with the PHP vulnerability of October 2026: almost half of PHP sites were running a version that no longer received updates.
Knowledge: the people who understand the system are leaving
COBOL is the best-known example: the language is still estimated to process a significant share of global banking payment traffic, yet the generation of developers who maintain it is retiring and hardly any new COBOL developers are coming through. The same pattern applies to Delphi, AS/400 (RPG) and WinCC configurations: the knowledge often sits with one or two people.
Compliance: regulation changes faster than the system can keep up
Regulations such as the NIS2 Directive impose security and incident-reporting requirements that a closed legacy system often cannot meet without major modifications. See also our explanation of NIS2 and custom software.
Integration: the system doesn't talk to the rest
Modern tools expect an API. Many legacy systems were built before that became the norm and have little or no integration capability, so every integration becomes a separate, fragile intermediate layer.
Seven signs it's time to modernise
No single sign is decisive on its own. If you recognise three or more, it is worth having the system assessed.
Hardly any developers can be found who know the language or platform
Each maintenance vacancy takes longer to fill than the last, or goes to an ever smaller group of freelancers.
Every change takes more time than the last
A small adjustment unexpectedly affects other parts of the system; testing takes up an ever greater share of the effort relative to the change itself.
The platform vendor is ending support
No more security updates, or only at an increasing premium for extended support.
The system can't integrate with the tools the rest of the organisation already uses
Data is retyped by hand or exchanged via separate exports instead of through an integration.
New laws and regulations require functionality the system doesn't have
Think of reporting obligations, logging requirements or access control that would have to be bolted onto the system after the fact.
The underlying infrastructure is itself end-of-life
The operating system, database version or runtime the system runs on is no longer patched by the manufacturer.
Knowledge of how the system works sits in the heads of one or two people
There is no up-to-date documentation, and if that person is absent or leaves, the organisation grinds to a halt.
These are the signs at a glance. A more detailed walkthrough, with a concrete check for each sign to gauge how urgent it is, can be found in when to replace your software.
Common legacy systems we replace
Every platform brings its own migration challenges. Four systems come up most often for us.
Delphi applications
Often Windows desktop applications from the 1990s and 2000s, still fully operational but no longer suited to web or mobile use. Read more about modernising a Delphi application.
COBOL systems
Typical at banks, insurers and government: large, critical batch-processing systems where the risks of downtime are high. Read more about replacing a COBOL system.
AS/400 (IBM i)
Widely used in wholesale, manufacturing and logistics for ERP and inventory processes, often with RPG program logic that has lasted for decades. Read more about replacing AS/400 with a modern platform.
WinCC (SCADA/HMI)
Siemens WinCC installations on the factory floor handling process control and monitoring, where replacement must be done carefully without interrupting production. Read more about replacing WinCC.
Replace or modernise: it's not all or nothing
The choice is rarely between doing nothing and replacing everything at once. In practice, there are two routes.
Incremental modernisation
Parts of the old system are replaced step by step while the rest keeps running: first the outer layer or a specific process, then the next layer. This lowers the risk per step and keeps the organisation running, but it requires an intermediate layer that lets old and new communicate with each other.
Full replacement
The entire system is moved to a new platform in a single project, including data conversion. This is simpler in terms of architecture, but it requires careful planning of the transition, including a period in which the old and new systems run side by side under controlled conditions.
What a modernisation project looks like in practice
Whether you choose to replace incrementally or all at once, a careful project follows the same four core steps.
Discovery
Mapping out exactly what the system does: which business rules are buried in it, which integrations exist and where the knowledge about the system comes from. In legacy systems, much of that logic isn't documented anywhere, only in the code itself.
Prioritising by risk and value
Not every component is equally urgent. The components that carry the most security risk or change most often usually come first, not necessarily the ones that are easiest.
Building alongside the existing system
With an incremental approach, an interface is created that lets old and new work together, so the existing system stays operational while the new component is built and tested.
Controlled migration and validation
Data and functionality are migrated with a validation step: volumes, history and business rules are checked before the old component is finally switched off.
Frequently asked questions about technical debt and legacy software
An independent view of your legacy system
First we assess what your current system does and where the risks really lie, before proposing a modernisation approach that suits your organisation.
Schedule a no-obligation conversationIs it time to redesign processes instead of continuing to patch them up? On applatenmaken.com you can read more about custom business automation.