Engineering
5 guests 5 episodes 3,878 words

Things You Should Never Do, Part II: The Rewrite Question in the Age of AI

Should you ever throw away your codebase and start over, or is a rewrite always a doomed trap?

In 2000, Joel Spolsky called throwing away a working codebase "the single worst strategic mistake that any software company can make." A quarter century later, the answer turns out to depend on which crime scene you are standing in. Tanguy Crusson is standing in the wreckage of HipChat and Stride, the product Atlassian spent three years rewriting while Slack and Microsoft Teams lapped the field. Will Larson is standing next to a table of untouched sushi and champagne flutes, served at the Digg v4 launch party while the production site refused to come back up. Jay Baxter is inside the post-layoff X offices, where a forced audit of Community Notes discovered that deletion, not rebuilding, was the highest-leverage move the team had ever made. And Dhanji Prasanna, CTO at Block, is typing prompts to an AI agent, deleting the output, and calling this the new baseline.

Four rooms, four answers. What sounds like a simple engineering question — rewrite or evolve? — is really a debate about how much of your product's value is trapped in undocumented code, how fast competitors are moving, and whether the cost of rebuilding from scratch is still a universal constant or has just collapsed overnight.

You are staring at an aging system. It is hard to support, nobody wants to work on it, the business is asking for capabilities the architecture cannot gracefully absorb, and a competitor is moving faster. Do you take the engineers who want to go greenfield seriously and authorize a rewrite — or do you treat that impulse as the warning sign of a project that will eat your company? And in an AI-native world, does that calculus still hold?

HipChat / Stride

Atlassian's HipChat rewrite became Stride — by the time it shipped, Slack was miles ahead and Atlassian ultimately sold both to Slack

Tanguy Crusson lived through the failed rewrite that cost Atlassian the enterprise chat market; his advice now is absolutist: never do a rewrite

Read full storyClose story
Crusson is not arguing from principle — he's arguing from a body at the crime scene. HipChat was Slack before Slack: a beloved, fast-growing enterprise chat product with a cult following. When Slack emerged as an existential threat, Atlassian responded by going 'HipChat Go Big.' The platform couldn't absorb that many contributors at once, so the team concluded they had to rewrite. That rewrite became the product eventually rebranded as Stride. By the time it shipped, Slack had pulled miles ahead and Microsoft Teams had launched with free Office distribution. Atlassian ultimately sold HipChat and Stride to Slack and exited enterprise communications. The stock price went up $10 the day the shutdown was announced. A rewrite, a platformization, and a GTM war at the same time was impossible — and the rewrite was the one they should have refused. In Tanguy's own words: "The platform is not so ready for so many people to work on it. And so we got to the inevitable, okay, it's too much tech, we can't do much about it so we made the decision to rewrite it. There's lots of literature around there around should you do rewrite? Should you not do rewrite? You ask me now, I tell you never. Trust me." (Describing the moment HipChat decided to rewrite.)
Digg

Digg v4 launch day: caterers, sushi, and champagne flutes around a table of engineers — because the site was not up. It took a month to come back

Will Larson lived through one of the most famous rewrite failures in startup history, driven by a genuine capability gap (social features) — and it still killed the company

Read full storyClose story
Larson brings the most viscerally specific rewrite horror story in the Lenny archive: Digg v4. The decision to do a complete rewrite was made two and a half years before he joined, driven by a real strategic insight — that Digg was losing to the emerging social networks and needed a social layer the existing architecture couldn't support. It's the strongest possible case for a rewrite: not aesthetics, not accumulated debt, but a genuine capability gap. And it still failed catastrophically. Launch day was sushi, champagne flutes, and caterers arranged around a table of engineers because the site was not up. It took the team a full month to get the rewritten product functional, during which most engineers had already given up; only about five were still actively trying to bring it back. The site was eventually restored, but Digg ran out of money and sold for parts. In Will's own words: "The decision that was done, I think two and a half years before I joined, and the shift about six months after I joined was they needed to do a complete rewrite in order to get there. This is a decision that never works out for anyone. So I think as someone with more experience, I could have predicted this wasn't going to work out. But I was earlier in my career." (Reflecting on the Digg v4 rewrite.)
Community Notes / X

After Twitter's layoffs, the Community Notes team audited the system and deleted parts whose maintenance cost exceeded their contribution — a partial, deletion-driven re-architecture that worked

Jay Baxter argues the right unit isn't 'the system' but the components that no longer pull their weight — small teams are forced into this discipline that large teams rarely do

Read full storyClose story
Baxter holds the most interesting middle position in this debate because he lived through the Elon-era X re-architecture and is willing to say, carefully, that a version of it actually worked. His framing starts from a specific pathology: engineers add small incremental A/B-test wins that look good in a one-month experiment but carry long-term maintenance costs that compound over years. After Twitter's large layoffs, the Community Notes team was forced into an audit they would never have done voluntarily — walking through the system, identifying parts whose maintenance burden exceeded their contribution, and deleting them. He explicitly corrects Lenny's framing: this is not the same as a greenfield rewrite. The interesting move is in the middle: aggressive deletion of accumulated cruft while preserving the parts of the system that still earn their keep. In Jay's own words: "You don't have to rewrite everything from scratch. Some things are good, I guess, to rewrite. But just even deleting the unnecessary cruft and keeping the rest of the core system, that's awesome." (Correcting Lenny's framing that Elon 'threw away the whole thing' — the actual intervention was selective deletion plus partial rewrite.)
Block

Dhanji Prasanna is pushing Block to live inside the assumption that every release should rm -rf the app and rebuild from scratch — using AI

His argument: the old anti-rewrite rule was downstream of human labor cost, and in an AI-native world specifications become the durable artifact while code becomes ephemeral

Read full storyClose story
Prasanna offers the most aggressive contrarian position in the archive. His core move is to argue that the anti-rewrite rule was never a law of software; it was a consequence of economics. Historically, rewriting was expensive because humans were expensive and slow, so 'don't rewrite' was a rational heuristic. But AI agents collapse both the cost of generation and re-derivation to near zero. He's clear this is directional rather than currently possible, but he is pushing his teams at Block to live inside that assumption — what would our world look like if every single release, rm -rf deleted the entire app and rebuilt it from scratch? Specifications and tests become the durable artifact; the code becomes ephemeral output, regenerated each cycle. Undocumented tacit knowledge in a legacy codebase becomes a liability, not a defense. In Dhanji's own words: "I think that you're going to see instead of us, for example, refactoring an app to have a different UI or to evolve into its new version, we're just going to rewrite that app from scratch. And one of the things I'm really pushing our teams to think about is what would our world look like if every single release, RM minus RF deleted the entire app and rebuilt it from scratch?" (Articulating his contrarian position that AI inverts the classical cost calculus of rewrites.)
Rent the Runway / Two Sigma

Camille Fournier's diagnostic question that kills most rewrites: 'If I could leave this system alone for a long period without it harming my business, is it worth changing at all?'

Her argument is evolutionary: take pieces of the old system, uplift them, clean up tech debt in place — migration cost is almost always underestimated

Read full storyClose story
Fournier's case against rewrites is fundamentally about epistemic humility. The seductive logic of a rewrite — 'this old thing is crappy, let's just go over here and build the new thing' — underestimates how much the old system actually does. Legacy systems accumulate years of undocumented business logic, edge-case handling, and hard-won bug fixes. Engineers who want to rewrite typically haven't catalogued any of it. Her diagnostic question often kills the rewrite impulse entirely: if you could leave this alone without harming the business, is it worth changing at all? If the only reason for the rewrite is engineer annoyance, you're burning capital to scratch an aesthetic itch. Her constructive alternative is stage-wise evolution — identify a well-contained subsystem, uplift it, clean up its tech debt, leave the rest alone. In Camille's own words: "When you're struggling making an evolution plan, take pieces potentially of the old system, uplift them, make them more scalable, make them easier to work with, clean up the tech debt, but trying to say we're going to just go away. We're going to rewrite, we're going to build something brand new and it's going to solve all our problems, it just very rarely works." (Her prescription: staged, piecewise evolution rather than a greenfield replacement.)

Synthesis

None of these five voices is actually arguing the simple question Spolsky posed. The real disagreement is about the right unit of change. Fournier says it is a subsystem. Crusson says it is your entire competitive position, and the answer is to not touch it. Larson says it is the engineering team's belief, which collapses within thirty days if the new thing does not work. Baxter says it is the individual component, and the move is deletion, not replacement. Prasanna says it is the release, and the code itself is the wrong thing to protect — the specification is.

Fournier says the unit is a subsystem. Baxter says it's a component (mostly deletion). Larson says it's team belief — which collapses within thirty days if the new thing doesn't work. Prasanna says it's the release and code itself is the wrong thing to protect. The real disagreement isn't rewrite-or-evolve; it's what the right unit of change even is.

Camille Fournier's question kills most rewrite impulses before they form. If the honest answer is no, the rewrite is an aesthetic project and you should stop. Most rewrites are disguised attempts to solve a non-technical problem with a technical solution — HipChat's real problem was Slack's PMF, not its platform.

Crusson's HipChat lesson isn't that rewrites are impossible — it's that a rewrite, a platformization, and a competitive war were each hard individually, and stacking all three at once was fatal. The rewrite was the one Atlassian had the most control over and should have refused. Ask which dependencies are real and which you chose.

Jay Baxter's post-layoff X audit found that deletion — not rebuilding — was the highest-leverage move. A/B-test wins are measured in one-month windows, but maintenance costs compound for years. The interesting move is rarely rewrite or evolve; it's honest component-level cruft removal that normal orgs never get around to without external pressure.

Prasanna's contrarian move: 'never rewrite' was never a law, it was a consequence of economics. Generation and re-derivation used to be expensive. If AI collapses that cost, the rule protects you from something that no longer exists. The test is whether specifications can reliably capture tacit knowledge — nobody has shipped this at scale yet.

Compare your situation

Answer 3 questions to explore a position connected to your choices. Use it as a starting point for reading.

Question 1

What is the honest answer to Fournier's diagnostic: if you left this system alone for a year, would your business actually suffer?

Question 2

What is the competitive context?

Question 3

How confident are you in your team's understanding of the old system?

Notable absences

Successful-rewrite founder
A founder or CTO who did a successful full rewrite and is willing to say so on the record -- Netflix, Facebook, and Twitter have all done core re-platformings
Larson's 'never works out' claim may be a survivorship artifact.
Read context

A founder or CTO who did a successful full rewrite and is willing to say so on the record would test whether Larson's 'never works out for anyone' is empirically true or a survivorship artifact. Netflix, Facebook, and Twitter have all done successful core re-platformings, but none of those stories are in the evidence base.

AI infrastructure reliability data
An AI infrastructure leader could pressure-test Dhanji Prasanna's 'rm -rf every release' model with real reliability data
The most important open question is whether the cost collapse is actually happening yet.
Read context

An AI infrastructure leader who could pressure-test Prasanna's 'rm -rf every release' model with real reliability data would resolve the most important open question in this debate: whether the cost collapse is actually happening yet or is still aspirational. Without that voice, the debate can't distinguish a working pattern from a thought experiment.

Regulated-domain reality check
A product leader from healthcare, fintech, or insurance where legacy encodes compliance logic that cannot be re-derived from a spec
Specification-as-durable-artifact breaks where it's most load-bearing.
Read context

A product leader from a regulated industry -- healthcare, fintech, insurance -- where legacy encodes compliance logic that cannot be re-derived from a spec would stress-test the specification-as-durable-artifact claim at the exact point where it is most load-bearing. The current debate assumes specs can capture intent; regulated domains are where that assumption fails.

The Bottom Line

The insight underneath all of this: the rewrite question is really a question about trust. Fournier is protecting engineering managers from their own teams' ambition. Crusson is lending you his pattern-matching so you do not have to lose a product to get it. Larson is offering a specific image — sushi, champagne, a dark production site — to cache against a decision your team will otherwise rationalize into existence. Baxter is quietly admitting that most engineering orgs will not make these trade-offs without external pressure. The debate is not really about code. It is about which failure mode you find easier to recover from: the rewrite that never ships, or the legacy system that slowly becomes unshippable.

The newsletter archive suggests a quieter path most successful companies actually take. "How Miro builds product" documents a 60/20/20 split that treats tech debt reduction as a continuous line item, dynamically reweighted when legacy burden grows — so pressure for one giant catastrophic rewrite never builds up. "How Perplexity builds product" sharpens it: tech debt work is only prioritized when it unlocks a user-visible capability, which is exactly Fournier's staged-evolution alternative. "Introducing Core 4" offers the measurement discipline the anti-rewrite camp is implicitly demanding — tech debt repayment as a business metric rather than an engineering aesthetic, so teams can distinguish a healthy piecewise evolution from a vanity rewrite before committing the capital.

  1. Camille Fournier — "The things engineers are desperate for PMs to understand | Camille Fournier (author of “The Manager’s Path,” ex-CTO at Rent the Runway)" — Lenny's Podcast, September 15, 2024
  2. Tanguy Crusson — "Hard-won lessons building 0 to 1 inside Atlassian | Tanguy Crusson (Head of Jira Product Discovery)" — Lenny's Podcast, June 16, 2024
  3. Will Larson — "The engineering mindset | Will Larson (Carta, Stripe, Uber, Calm, Digg)" — Lenny's Podcast, January 7, 2024
  4. Dhanji R. Prasanna — "How Block is becoming the most AI-native enterprise in the world | Dhanji R. Prasanna" — Lenny's Podcast, October 26, 2025

Search the Atlas

Find guests, questions, and picks.

Loading search…
↑↓ move through results←→ change type at text edge↵ open resultEsc close