We modernize after something breaks. That no longer makes sense

Modernization usually starts only after something breaks. AI has made the work far cheaper and attacks far more automated, so continuous technological hygiene pays off, and the part that still decides the outcome is the plan.

Published
Reading time
8 min

There is a Polish meme I keep coming back to. The top half shows Hiroshima at night: a modern, brightly lit city. The caption says an atomic bomb fell here. The bottom half shows a crumbling tenement in Łódź, a city in central Poland, with peeling plaster and boarded windows. The caption says nothing fell here.

A Polish meme in two panels. Top: Hiroshima at night, a modern, brightly lit city, captioned 'This is Hiroshima, an atomic bomb fell here'. Bottom: a crumbling tenement in Łódź, captioned 'And this is Łódź, nothing fell here'.

It is dark humour, and I do not want to make light of the first picture. What stays with me is the second one. Nothing dramatic happened to that building. Nobody had a reason to rebuild it, so for decades nobody did.

Software systems age in the same way. The way I see it, modernization usually starts only after something explodes: a breach, an outage, a release that nobody can ship any more. Then there is suddenly a budget and a priority, and after some time the system really does look good. The systems where nothing explodes are left alone, and they slowly turn into that tenement.

My position is this. The economics of modernization have changed. Doing the work has become much cheaper, while waiting for the explosion has become more dangerous. What is still hard, and what decides whether modernization helps or hurts, is the plan.

Nobody touches a running system

Gregor Hohpe describes the logic well. Systems become legacy because technology moves faster than the business, and IT is tempted to “simply let it run”, following the old advice to never touch a running system. There is rarely a business case for updating technology that still works. Hohpe compares this to treating an oil change as a waste of money because the car still runs without one, until the engine seizes. He also notes that changing regulations or security vulnerabilities in an old stack tend to interfere with that plan (The Software Architect Elevator, pp. 96-97).

It is an analogy I use myself. Maintenance always costs something. A system that nobody looks after degrades even when nobody touches it.

The explosions are getting more frequent

The reason I am writing this now is that the explosions have become more frequent, partly because attackers use AI.

In November 2025 Anthropic reported a cyber espionage campaign in which a state-sponsored group used Claude Code as an automated attack tool. Anthropic estimates that AI performed 80-90% of the campaign, with humans stepping in at perhaps four to six decision points. The targets included large tech companies, financial institutions, chemical manufacturers and government agencies (Anthropic, 2025). CrowdStrike’s 2026 Global Threat Report counts an 89% increase in attacks by AI-enabled adversaries and a 42% increase in zero-day vulnerabilities exploited before public disclosure (CrowdStrike, 2026).

I notice that serious industries such as fintech and insurance talk more and more about how to defend against these attacks. Far fewer people talk about the systems the attacks land on.

Neal Ford tells the Equifax story as a lesson in governance. The Apache Struts vulnerability was announced and patched in March 2017. Scans found most of the affected systems, but not all of them, and the critical patch did not reach many older systems for months. Equifax announced the breach in September 2017 (Software Architecture Metrics, p. 136). The patch existed. What was missing was a way to reach the systems that were no longer under active development.

Hygiene is more than dependency updates

That brings me to what I call technological hygiene. For me it means up-to-date libraries, and also an architecture that still fits how the business works today. The business keeps changing. A system that nobody adapts to those changes falls behind year after year, even when every library in it is current.

Carola Lilienthal gives this a clear shape. Every system accumulates technical debt as it is extended, because the first version of a solution is rarely the final one. If a team can keep alternating between extending the system and improving its architecture, maintenance costs stay low and stable. If the team is not allowed to reduce the debt continuously, the architecture erodes: each change gets more expensive, errors get harder to understand, and less functionality gets built per unit of time (Software Architecture Metrics, pp. 50-51).

The important word there is continuously. Hygiene is a rhythm, part of normal work. A large modernization project every ten years is what happens when that rhythm is missing.

Broken windows in a codebase

All of this reminds me of the broken windows theory. James Q. Wilson and George L. Kelling introduced it in 1982: visible signs of disorder, such as a broken window nobody repairs, invite more disorder (Wikipedia summary). As a policing strategy the theory has been heavily debated. As a picture of what happens inside a codebase, I find it very accurate.

Andy Hunt and Dave Thomas applied the idea to software in The Pragmatic Programmer. Their tip is short: “Fix bad designs, wrong decisions, and poor code when you see them” (Pragmatic Programmer tips). In an interview they explained why: “As soon as something is broken and not fixed, it starts spreading a malaise across the team” (Venners, Artima, 2003).

In a system the broken windows look ordinary. One outdated library that nobody upgrades because something might break. One workaround in the architecture that was meant to be temporary. One business process that moved into a spreadsheet because the system could not handle it any more. Each of them makes the next one easier to accept. After a while nobody notices the cracks, just as nobody in that street notices the tenement.

Execution has become cheap

And now the interesting part. The work of modernization itself, the part that used to make it so expensive, can now be done to a large extent by AI agents.

Google published an experience report on using LLMs for internal code migrations. In one migration, of IDs from 32-bit to 64-bit integers across a very large codebase, 80% of the code modifications in the landed changes were fully written by AI, and the engineers estimated that the total time spent on the migration fell by about 50%, including review. In a migration of test code from JUnit3 to JUnit4, around 87% of the AI-generated code was committed without any change (Nikolov et al., 2025).

The same report is honest about what stayed with people. Engineers had to identify where to start, order the changes and coordinate with reviewers, and in most cases revert at least some of what the model changed. In their words, “Code reviews and change rollouts still require a human operator.”

Jessica Kerr summed up the situation in one line on the back cover of Diana Montalion’s Learning Systems Thinking: “When changing code becomes easy enough, yet changing software only gets harder.” That describes our situation well.

Cheap code also brings a temptation: if code costs so little, why not rewrite everything from scratch? In my view a full rewrite is still the simplest strategy and usually the worst one. I wrote about the alternatives in an earlier article on modernizing a legacy system without defaulting to a rewrite.

What is still expensive is the plan

If the implementation is cheap, the value moves to everything around it. A good modernization plan answers questions that no agent will answer for you:

  • Where you are starting from. How long a typical change takes, where work has leaked out of the system, who is the only person who understands which part.
  • Which strategy fits which part. Some parts should be retained, some refactored, some replaced step by step, some retired.
  • In what order. Dependencies between components decide where a change is safe to start and where it will ripple.
  • How you go back. Rolling back code is easy. Rolling back data is the part that needs a rehearsed plan.
  • How hygiene continues afterwards. Modernization has an end, and maintenance continues after it, so it needs its own ongoing budget.

There is also a cheap mechanism that keeps hygiene going between projects. Ford suggests that every project, even an idle one, keeps a deployment pipeline with a slot where the security team can add checks. When a new vulnerability appears, one check for the affected framework version can run across all projects and flag the ones at risk (Software Architecture Metrics, p. 136). That is the software version of walking down the street and counting the broken windows.

Should you modernize now?

Some systems should be left alone. A stable system that rarely changes, costs little to run and has no known security problems may not need anything beyond a deliberate review of its support status. Modernization should still answer a business problem: speed of change, cost, risk or security.

For everything else, I keep asking myself one question. The renovation has never been this cheap to carry out. The attacks have never been this automated. Is it really worth waiting until something explodes?

If you want a first step, take one system you are responsible for and check two dates: when its dependencies were last upgraded, and when its architecture last changed because the business changed. If both are years old, you already know which building you are looking at.

Sources

Choosing a vendor or shaping a project team?

Tell me what you are deciding and who is involved. I will tell you honestly whether I can help.