There's No Limit to How Bad Code Can Get

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

It argues that greenfield rewrites of legacy systems usually fail, so engineers facing tech debt should test and refactor instead of rebuilding.

Read this as

Software writer Simon Willison argues in a blog comment that starting over from scratch rarely fixes badly built software, called technical debt. He explains that while a new team builds a replacement, the old system keeps changing and gets neglected, so nobody fully understands what they are replacing. Years later companies often end up running two half-finished systems instead of one. He recommends adding automated testing and careful targeted fixes instead.

Willison warns that the popular 'burn it down and rewrite' strategy for cutting technical debt usually ends with two production systems, wasted months, and eventual abandonment. He cites Will Larson's article 'Migrations: the sole scalable fix to tech debt' as the responsible path. His alternative is hardening the old system with automated tests and targeted refactors. For leaders, the cost lesson is that rewrite teams rarely deliver, and patience is the scarcest resource.

Writing in a Lobste.rs comment thread, Willison describes the standard rewrite failure mode: the legacy system stays a moving target, its developers stop trying, the greenfield team ships a partial subset after months or years, and the org ends up with two systems. He recommends maximum automated test coverage on the legacy system followed by targeted refactors, and points to Will Larson's 'Migrations: the sole scalable fix to tech debt'. No empirical data or case studies are given; this is practitioner opinion.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison Lobste.rs Will Larson Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading