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.

Technical debt Legacy software System modernisation Risk signals Migration strategy
Request an independent assessment Go to the signals
!

Ward 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.

01

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.

02

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.

03

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

What is the difference between technical debt and legacy software?
Technical debt is the broader concept: the accumulated gap between how a system was built and how it should actually work. Legacy software is a specific, often extreme form of it, namely a system whose underlying language, platform or architecture has become outdated. So not every system with technical debt is legacy, but every legacy system does carry technical debt.
Is all technical debt bad?
No. Ward Cunningham's original point was precisely that a little debt can speed up development, as long as it is taken on deliberately and repaid in time with a rewrite. It only becomes a problem when the debt piles up unnoticed and nobody keeps track of what still needs to be repaid.
When is replacing more urgent than simply maintaining?
As soon as several of the seven signs on this page apply at the same time, especially when security, developer scarcity and compliance coincide. Maintenance remains a perfectly good option as long as the system is stable, secure and adaptable enough for what the organisation needs.
What does it cost to replace legacy software?
That depends heavily on the size of the system, the amount and quality of existing documentation, the complexity of the data conversion and whether you choose to replace incrementally or all at once. A good first step is a technical inventory of what the system does exactly, before deciding on an approach.
Can I replace legacy software step by step instead of all at once?
Yes, for most organisations this is the lowest-risk route. A middle layer is built that lets the old and new systems work together, after which functionality is migrated piece by piece. This lengthens the project, but it avoids the organisation switching over in one go with no fallback.
What happens to my data during a migration?
Data is analysed, cleaned and transferred to the structure of the new system. For critical systems this usually runs via a test environment with a validation step, so that figures and history are correct before the old system is switched off.
Which legacy systems does Appfront replace most often?
Delphi desktop applications, COBOL systems at financial and government organisations, AS/400 platforms (IBM i) in wholesale and manufacturing, and Siemens WinCC installations on the factory floor. Each calls for a different approach, given the sector and the risk of downtime.

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 conversation

Is it time to redesign processes instead of continuing to patch them up? On applatenmaken.com you can read more about custom business automation.

Edit content