<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm" -->

---
title: There's No Limit to How Bad Code Can Get | daily.dev
description: An engineer reflects on a decade-plus career including time at Amazon working on order-processing systems, arguing that common metaphors like a 'sinking ship'...
canonical: https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: There's No Limit to How Bad Code Can Get | daily.dev
og:description: An engineer reflects on a decade-plus career including time at Amazon working on order-processing systems, arguing that common metaphors like a 'sinking ship'...
og:url: https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm
og:image: https://api.daily.dev/og/posts/NSOryvAWM.png
og:image:alt: There's No Limit to How Bad Code Can Get
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# There's No Limit to How Bad Code Can Get

**[Lobsters](https://daily.dev/sources/lobsters)** · 8 min read · 0 upvotes · 1 comments

## Summary

An engineer reflects on a decade-plus career including time at Amazon working on order-processing systems, arguing that common metaphors like a 'sinking ship' for bad codebases are misleading because they imply an eventual floor or end. Unlike physical structures, software has no inherent limit to how bad it can get; a business will fail long before code quality bottoms out. The piece also critiques 'technical debt' as a metaphor, noting debt implies bankruptcy (a clean reset via rewrite), but full rewrites are rarely viable, and even 'side-channel' systems at large companies leave old systems maintained indefinitely. The conclusion: there's no natural constraint forcing teams to address technical debt, so it requires ongoing deliberate effort.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://zachkehs.com/blog/theres_no_limit_to_how_bad_code_can_get>

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 177 comments across lobsters, hackernews (as of 2026-09-13).

**TL;DR:** Discussion centers on whether full rewrites ever work, with most experience suggesting they rarely succeed due to moving targets and lost domain knowledge, while a separate thread argues LLMs are simultaneously the best tool yet for paying down tech debt and a major new source of it.

**Sentiment:** 15% positive · 45% mixed · 40% skeptical

**The case for**

- A few people report successful full rewrites when the team retains deep domain knowledge, strong collaboration, and experienced technical leadership.
- Some argue LLMs can genuinely help pay down technical debt by digging through legacy code, writing tests, and executing targeted refactors when properly directed.
- Piecemeal or 'side-channel' replacement approaches are seen as more pragmatic than all-at-once rewrites.

**The pushback**

- Rewrites are widely seen as failure-prone: the old system keeps evolving while the new one stalls, often leaving two systems in production instead of one.
- Teams attempting rewrites frequently don't actually understand the business logic of what they're replacing, undermining the effort from the start.
- Several argue LLMs mostly accelerate the creation of technical debt and unmaintainable 'mudballs' rather than fixing it, especially when used without supervision.
- LLM-generated comments and documentation are criticized as often verbose, incorrect, or no better than the underlying code, requiring the same review effort as the code itself.
- Some dispute the article's claim that tech debt has no bankruptcy option, pointing out that deprecating, replacing, or shutting down a system is effectively that reset.

**By community**

- lobsters (mixed): Extensive back-and-forth on whether rewrites can succeed, with most citing failure patterns but a couple sharing genuine success stories and cautioning against blanket pessimism.
- hackernews (heated): Splits sharply between commenters who see LLMs as a powerful debt-repayment tool and those who argue they mainly generate more unmaintainable code faster, alongside many personal horror stories about legacy codebases.

**Hottest debate:** Whether LLMs are net helpful or net harmful for technical debt — accelerating cleanup versus accelerating the creation of new messes.

**Open questions**

- What org/management-level changes actually encourage sustained investment in fixing technical debt rather than letting it accumulate indefinitely?
- How do you reliably measure whether a feature is still used before deciding to remove it, especially in systems with customer-controlled or rare edge-case usage?

**Highlights**

> In my experience it's *so rare* for that to work. You announce the old thing is irrecoverably drowning in tech debt. You spin up a team to rewrite it from scratch. Work begins. Meanwhile the old thing remains a moving target: it's running the core business, so changes are still necessary. The developers working on it know that it's going to be made obsolete by the new thing soon, so they don't have any incentive to go beyond the smallest effort possible to add the new features. Technical debt continues to mount. Meanwhile, the team working on the new thing are ambitious and probably a little naive. They start out at a great pace - it's greenfield after all - but as time progresses it becomes apparent that nobody fully understands the behavior and scope of the thing they are replacing. If it was well documented and tested it wouldn't *need* to be replaced, after all... After months (or even years) without delivering value, the pressure is on to "ship it", so the new system is launched to handle a subset of what the old system handled - or often for some new feature that was too hard to build with the now mostly unmaintained old system. ... so now you have TWO systems in production - the janky old system that nobody wants to touch, and a new system which handles just a few production features and is 80% inactive code that is meant to replace the old system, eventually. If you're *really lucky* the company won't have lost patience with the new system and will allow that work to continue. The longer this all takes, and the longer the old system stays in production and stubbornly continues to work, the higher the risk that "priorities have changed" and the new system total replacement work is abandoned, leaving you with two systems where you used to have one. The best article I've read about completing this process responsibly is [Migrations: the sole scalable fix to tech debt](https://lethain.com/migrations/) by Will Larson. If I run into a situation like this in the future, my strong recommendation is going to be shoring up the old system with as much automated testing as possible and then seeing if targeted refactors can get it to the desired shape. My hunch is that in many cases that will have a much higher chance of success than the siren call of a greenfield replacement.
> — [simonw on lobsters · 31 points, 5 comments](https://lobste.rs/s/rfn2mn/there_s_no_limit_how_bad_code_can_get#c_8kdtaw)

> > In my experience it's so rare for that to work. > You announce the old thing is irrecoverably drowning in tech debt. You spin up a team to rewrite it from scratch. Work begins. I've actually done this successfully once - legacy system built on a now unsupported platform and language, technical debt declared to be insurmountable, new system from scratch. I was very worried about it and recommended exploring the strangling fig pattern. We did *some* of this - some subsystems were used by both systems, but mostly it was a newly built. This was a sizeable system with complex user interface requirements and some tricky business rules, including a configurable workflow system. We had a few things going for us:  * the main dev of the original system was on the new team *and* willing to listen to others and be open minded about it. * we had stakeholders with a deep understanding of the requirements in the room (including the main dev I just mentioned) * we had someone who really helped us gel into a properly functioning, actually collaborating team rather than individuals throwing PRs over the wall. * if I may toot my own horn, I'm experienced, helped mentor and offered technical leadership. Strong focus on keeping the new system as well defined and declarative as possible. It wasn't easy, but we had good working conditions. It took a long time of steady incremental progress with business support. And I'm pretty sure that even years after this, the older implementation is still running too, but I could be wrong. I'd read lots of stuff about avoiding total rewrites before I started, which is why I was so wary. But it can be done. We were lucky too: I don't think it's easy to replicate the things I listed that made it work.
> — [faassen on lobsters · 2 points](https://lobste.rs/s/rfn2mn/there_s_no_limit_how_bad_code_can_get#c_qekab3)

> I’m always a bit baffled how someone can see a system with business logic they don’t understand and think “rearchitecting it will make it clear”. To rearchitect it, you have to understand it. The difficulty is that rearchitecting something sounds sophisticated, while understanding the function of an existing system sounds like grunt work.  Once you do understand it, you’ll hopefully start to have ideas for rearchitecting things, but most of the rewriting crowd never reaches that point.
> — [hyperpape on lobsters · 20 points, 2 comments](https://lobste.rs/s/rfn2mn/there_s_no_limit_how_bad_code_can_get#c_uwdehe)

> > Technical debt has no bankruptcy, no clean reset There definitely is a technical debt bankruptcy option. You can stop using a particular piece of code or technology, e.g. by replacing it (with new code, or a third-party/vendor solution), or re-architecting a system or business process so that the code's function is no longer needed. This is exactly what the technical debt metaphor means. Short-lived systems can accumulate a lot of technical debt without as much concern, because you're planning to declare bankruptcy (deprecate and decommission) the code soon anyways; long-lived systems must plan to pay off their technical debt on the usual installment plan.
> — [blevinstein on hackernews · 1 comments](https://news.ycombinator.com/item?id=49578120)

> I'm willing to keep an open mind but the only example you've shared of such a success story and debunk was a LLM clearing the technical debt of a codebase that was fully LLM-written from the very first commit? If LLMs are so good at fixing tech debts, why did it write so much to begin with? And why do you assume that now there's no more debt?
> — [tredre3 on hackernews · 2 comments](https://news.ycombinator.com/item?id=49577653)

**Source threads**

- [lobsters](https://lobste.rs/s/rfn2mn/there_s_no_limit_how_bad_code_can_get) · 29 points · 13 comments
- [hackernews](https://news.ycombinator.com/item?id=49576704) · 102 points · 164 comments

## Community discussion

Top comments from developers on daily.dev.

**@nark3d** · 0 upvotes

> Physical systems do have a floor, which is why the metaphor survives even when it shouldn't. I've found the code doesn't degrade on its own, it degrades because every fix is scoped to the symptom and nobody owns the shape underneath.  Rewrites fail for the same reason the debt metaphor fails, they assume there's a version where the problem is gone.  So making the cleanup part of the next change rather than a separate project is hard.

## Similar posts on daily.dev

- [Technical Debt Is a Myth Created By Bad Managers](https://daily.dev/posts/technical-debt-is-a-myth-created-by-bad-managers-nko3hfjlg) · DEV · 202 upvotes · 20 comments
- [Most of you calling yourselves “senior developers” are actually just professional litterers](https://daily.dev/posts/most-of-you-calling-yourselves-senior-developers-are-actually-just-professional-litterers-4qqappjr4) · Medium · 0 upvotes · 0 comments
- [The Archaeology of Tech Debt: Auditing a 24-Year-Old Legacy Monolith in 4 Days via Multi-AI Consensus](https://daily.dev/posts/the-archaeology-of-tech-debt-auditing-a-24-year-old-legacy-monolith-in-4-days-via-multi-ai-consensu-jdna570gh) · Coins Bench · 0 upvotes · 0 comments
- [Your engineering team looks healthy. It probably isn't](https://daily.dev/posts/your-engineering-team-looks-healthy-it-probably-isn-t-to0izfpfa) · Lobsters · 2 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#amazon](https://daily.dev/tags/amazon), [#company-culture](https://daily.dev/tags/company-culture), [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"There's No Limit to How Bad Code Can Get","url":"https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm"},"datePublished":"2026-09-06T14:51:11.186Z","dateModified":"2026-09-13T18:34:59.004Z","description":"An engineer reflects on a decade-plus career including time at Amazon working on order-processing systems, arguing that common metaphors like a 'sinking ship'...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"architecture,amazon,company-culture,technical-debt","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"There's No Limit to How Bad Code Can Get"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm","comment":[{"@type":"Comment","text":"Physical systems do have a floor, which is why the metaphor survives even when it shouldn’t. I’ve found the code doesn’t degrade on its own, it degrades because every fix is scoped to the symptom and nobody owns the shape underneath.  Rewrites fail for the same reason the debt metaphor fails, they assume there’s a version where the problem is gone.  So making the cleanup part of the next change rather than a separate project is hard.","datePublished":"2026-09-16T10:44:09.371Z","url":"https://daily.dev/posts/NSOryvAWM#c-Ymnmm3cLM","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}}]}
```

