I’ve inherited enough 10-, 20-, and 30-year-old systems to know that legacy doesn’t mean “old.”
It means the business still depends on it, the revenue still flows through it, and everyone gets nervous when someone suggests “cleaning it up.”
That’s the part too many teams miss. A revenue-critical system is not a candidate for modernization because it looks dated. It becomes a modernization problem when the risk of leaving it alone starts to rival the risk of changing it.
There’s a real distinction between maintainable old code and risky legacy code.
Old code can be boring, unfashionable, and still perfectly serviceable. Risky legacy code is different. It has weak test coverage, undocumented business rules, hidden integrations, and just enough tribal knowledge to keep the lights on until the wrong person leaves. That’s when “we should modernize” stops being an engineering preference and becomes a business conversation.
And it is a business conversation.
When you’re dealing with COBOL in banking or old FoxPro-based ERP systems, you’re not touching curiosities from another era. You’re touching systems that still process transactions, invoices, shipments, payroll, and customer records. Break the wrong thing and you’re not shipping a bug. You’re interrupting revenue, trust, and sometimes compliance.
That’s why I’m always skeptical when someone jumps straight to a rewrite.
In my experience, full rewrites are often driven by emotion: “Nobody understands this.” “The tech stack is ancient.” “We need a fresh start.”
Sometimes that’s true. More often, it’s a failure to respect what the current system actually contains: years of edge cases, policy decisions, customer exceptions, and operational workarounds that were never written down anywhere.
A rewrite doesn’t remove that complexity. It just hides the fact that you haven’t rediscovered it yet.
What tends to work better is a more disciplined question:
What problem are we actually solving?
Is the issue deployment speed? Reliability? Talent availability? Infrastructure cost? A compliance bottleneck? Customer-facing latency? If you can’t answer that cleanly, you’re probably not ready to modernize. You’re just tired of the codebase.
I’ve found there are really only a few viable paths, and none of them are universally right.
Sometimes replatforming is enough. Same system, better infrastructure.
Sometimes incremental refactoring buys you years of life at a fraction of the cost.
Sometimes you do need a rewrite, but only when the scope is controlled, the behavior is deeply understood, and the organization has the stomach for the risk.
And most of the time, the most sensible path is some version of the Strangler Fig pattern: put a new layer around the old system, route traffic intelligently, and replace components gradually instead of betting the company on a big bang cutover.
That approach appeals to me because it respects reality.
You can migrate piece by piece. You can limit blast radius. You can roll back. You can learn as you go.
Most importantly, you can keep production running while you modernize the parts that matter most.
That last point is where a lot of modernization efforts go off the rails. Teams prioritize what is most embarrassing technically, not what is most important commercially.
I’d rather modernize the fragile customer-facing workflow that costs sales every week than spend a year replacing an ugly monthly batch job that nobody sees and that already works fine.
That may not be as emotionally satisfying for engineers, but it’s usually the right move for the business.
If I were advising a leadership team, I’d start with a few blunt questions:
- What breaks if we do nothing for 12–24 months?
- Which components carry the highest operational or revenue risk?
- Where are we dependent on tribal knowledge?
- How will we prove ROI beyond “the code is nicer now”?
- Can we migrate incrementally, or are we pretending a big bang cutover is safer than it is?
Those answers usually tell you more than any architecture diagram.
The biggest lesson here is simple: modernization is a risk management exercise disguised as an engineering project.
The winning teams are not the ones with the strongest opinions about stacks or patterns. They’re the ones that can balance business continuity, technical reality, and organizational patience.
I’ve seen old systems survive far longer than anyone expected because they were stable, profitable, and poorly understood. I’ve also seen modernization projects fail not because the engineers were weak, but because the company underestimated the operational discipline required to change a live system safely.
So if you’re staring at legacy code right now, my advice is straightforward:
Don’t start with “Should we rewrite this?” Start with “What risk are we carrying, and what is the safest way to reduce it without breaking the business?”
That framing leads to much better decisions.