Ruzora
Leadership

Why Software Rewrites Fail (and When to Do One)

Big rewrites fail because old code holds years of bug fixes and the product freezes while competitors ship. When to refactor, and when a rewrite is right.

RE

CEO, Ruzora

Updated 8 min read

Big software rewrites fail for two reasons: the old code quietly holds years of bug fixes the new version has to rediscover, and the product stops improving while the rewrite drags on. Netscape's from-scratch rewrite took about three years (Joel Spolsky), and Internet Explorer took the browser market in the meantime (Wikipedia).

Every engineer, looking at a messy codebase, has the same fantasy: throw it all away and rewrite it clean. It feels obviously right. It's also, according to one of the most famous essays in software, one of the most reliable ways to kill a company. Netscape did exactly this, and handed the browser market to Microsoft.

Key Takeaways

  • Netscape rewrote its browser from scratch (4.0 to 6.0), took ~3 years with no competitive releases (Joel Spolsky), and lost the market to Internet Explorer (Wikipedia).
  • The "ugly" old code usually encodes years of hard-won bug fixes you'll silently re-introduce (Joel Spolsky).
  • A rewrite freezes your product while competitors keep improving theirs.
  • Incremental refactoring almost always beats a from-scratch rewrite.

What Happened With the Netscape Rewrite?

In his landmark essay "Things You Should Never Do," Joel Spolsky argued that a working application should never be rewritten from the ground up, and he used Netscape as the corpse (Joel Spolsky). After version 4, Netscape threw away its codebase and started over. The rewrite took about three years, and during that time they couldn't meaningfully improve the browser people were actually using. Internet Explorer, free, bundled with Windows, and continuously improved, ate their market share to almost nothing. Netscape never recovered.

Spolsky's core insight is about what that messy old code actually is. Those crufty, weird-looking functions you want to delete are often bug fixes. Each ugly conditional is usually a corner case someone hit in production and patched. Throw the code away and you throw away years of accumulated, undocumented knowledge, then get to rediscover every one of those bugs the hard way (six rewrite stories).

What Is the Second-System Effect?

There's an older name for part of this: Fred Brooks's "second-system effect." The second version of a system is the most dangerous one a person designs, because they pour in every idea they cautiously left out of the first, and over-build it. A rewrite is almost always a second system, so it tends to arrive late, bloated, and full of the ambition the constraints of the first version wisely suppressed. You set out to fix the mess and build a bigger, later one.

The rewrite fantasyThe rewrite reality
Clean slate, no cruftRe-introduce old fixed bugs
Faster once it's doneYears with no product progress
Simpler designSecond-system over-engineering
Competitors waitCompetitors gain the whole time

A Concrete Version

A team inherits a five-year-old codebase everyone hates and convinces leadership to rewrite it clean, "six months, then we'll move faster." Eighteen months later the rewrite still doesn't have feature parity, because the old system did a hundred small things nobody documented. The whole time, the old product got almost no improvements, and a competitor shipped the feature customers were asking for. The rewrite finally lands, buggy in new ways, and the team is further behind than when it started. This is the Netscape story at startup scale, and it plays out constantly.

When Should You Rewrite Instead of Refactor?

"Never" is too strong, and taken literally it's its own trap. Sometimes the platform is genuinely dead (an unsupported language, a framework with no security patches), or the original architecture truly can't support where the business needs to go, and a rewrite is the right, if painful, call. The honest rule isn't never. It's that rewrites are far riskier and more rarely justified than engineers' instincts suggest, and the default should be incremental: refactor the messy code in place, strangle the old system piece by piece behind a stable interface (Martin Fowler's strangler fig pattern), and keep shipping the whole time. Choose a full rewrite only with clear eyes about the Netscape-shaped risk.

What This Means for Teams

Knowing when to refactor versus rewrite is one of the highest-stakes judgment calls in engineering, and it's exactly the hard-won judgment that separates senior engineers from confident-but-green ones, the same instinct behind resisting premature microservices. An experienced engineer has usually watched a rewrite go sideways and will push for the incremental path that keeps you shipping, which is the kind of judgment covered in how to verify a senior engineer.

Frequently Asked Questions

Why do software rewrites fail so often?

The old code encodes years of undocumented bug fixes you'll re-introduce, and a rewrite freezes your product while competitors keep improving. Joel Spolsky's classic example is Netscape, whose from-scratch rewrite cost it three years and the browser market.

What is the second-system effect?

Fred Brooks's observation that the second version of a system is the most dangerous, because designers over-build it with every idea they left out of the first. Rewrites are usually second systems, so they tend to arrive late and bloated.

Should I ever rewrite from scratch?

Rarely, and only with clear eyes. It can be right if the platform is truly dead or the architecture genuinely can't support the business. Usually incremental refactoring, strangling the old system piece by piece, is safer.

What's the alternative to a rewrite?

Refactor in place and use the "strangler fig" approach: put a stable interface in front of the old system, build new pieces behind it, and replace the old piece by piece while continuously shipping, so you never freeze the product.

How do I know if my codebase needs a rewrite?

Ask whether the platform itself is dead (no security patches, no hiring market for the language) or whether the code is just ugly. Ugly code gets refactored. A dead platform, or an architecture that truly can't carry the next stage of the business, is the rare case for a rewrite, and even then a piece-by-piece migration usually beats a big-bang switch.

The Bottom Line

The urge to throw away messy code and start clean is nearly universal and nearly always a mistake. Netscape's rewrite cost it three years and the market, because old code carries hard-won knowledge and a rewrite freezes progress while rivals advance. Refactor incrementally, keep shipping, and treat a full rewrite as a rare, clear-eyed exception, not the default.

Need senior engineers who've seen a rewrite go sideways and know the incremental path? See vetted senior LATAM engineers, or tell us the role and get a vetted shortlist within 72 hours.

Roberto Espinoza is CEO of Ruzora, which helps US startups hire pre-vetted senior LATAM engineers.

RE

CEO, Ruzora

Roberto is the founder and CEO of Ruzora. He works directly with US startup founders and CTOs on staff-augmentation and software-factory engagements, and personally reviews senior engineer placements.

Senior LATAM engineers

Get a vetted shortlist within 72 hours.

Tell us the role and the stack. Within 72 hours you're reviewing a vetted shortlist of senior LATAM engineers who match it.