<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe" -->

---
title: Interesting experience with legacy vs clean code. It's...
description: A mid-level engineer recounts watching a senior engineer's clean, well-architected system fail at one-tenth the scale of the legacy PHP spaghetti code it...
canonical: https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Interesting experience with legacy vs clean code. It's that old struggle to harmonize the exact with the artistic, the engineer with the artisan, while dealing with due dates and other real world expectations. | daily.dev
og:description: A mid-level engineer recounts watching a senior engineer's clean, well-architected system fail at one-tenth the scale of the legacy PHP spaghetti code it...
og:url: https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe
og:image: https://api.daily.dev/og/posts/e74VErOWE.png
og:image:alt: Interesting experience with legacy vs clean code. It's that old struggle to harmonize the exact with the artistic, the engineer with the artisan, while dealing with due dates and other real world expectations.
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.

# Interesting experience with legacy vs clean code.
It's that old struggle to harmonize the exact with the artistic, the engineer with the artisan, while dealing with due dates and other real world expectations.

**[Isaac de Andrade](https://daily.dev/sources/otqajuf6zdm9hfrwtlr9n)** · [@andradei](https://daily.dev/andradei) · 52 upvotes · 18 comments

## Summary

A mid-level engineer recounts watching a senior engineer's clean, well-architected system fail at one-tenth the scale of the legacy PHP spaghetti code it replaced. The new system prioritized code quality and design patterns but ignored infrastructure, caching, observability, and load testing. Despite raising concerns three times about production readiness, the engineer was dismissed. The beta launch crashed with connection pool exhaustion at just 1,000 concurrent users—far below the 85,000 the legacy system handled on Black Friday. The story illustrates four critical pillars: code quality, infrastructure and scaling strategy, observability, and operational culture. Clean code matters, but infrastructure, metrics, and a culture that values resilience over elegance are equally essential for production systems.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=zZW1ZaYxi8M>

## Community discussion

Top comments from developers on daily.dev.

**@ezpie** · 3 upvotes

> dibs on the senior dev having skill issues. Just saying.

**@arkmob** · 3 upvotes

> The title is somewhat misleading. It was not so much that spaghetti code supersedes (which is what I got from 'beat') clean code in a production environment, it is that developers should test early and test often and it seems that their ORM strategy or database design needed improvement. I do agree that infrastructure and observability (with a robust query performance metric) should be part of the initial planning.
>
> Interesting side note. I was part of a project that depended on legacy C++ code that used absolutely no design patterns other than OOP (and poorly). The youtube host mentioned...

**@tsumanu** · 3 upvotes

> I love how comments here and in yt are littered with "Clean code good, bad usage, bad senior, spaghetti code bad, unmaintainable, wisdom needed" despite this entire situation proved it's just BS.
>
>
> Over 14y I seen Clean Code projects so slow, so bloated with abstraction finding root of a bug was 4h effort. And this was OK for everyone. They just said "we are charging by hour"
>
> Is this maintainable? Kind of, every dev know commonly agreed project structure. Everything else doesn't matter. It can be slow, 60% of code can be copy-paste boilerplate to point actual business logic is buried in...

**@traustitj** · 1 upvotes

> This is quite a weird story about one developer doing "clean code" and failing miserably at it. One sided story. There was no load testing, cache testing and frankly, the story does not pass the smell test. I think it is not true. There might well be truth in the story. I have worked at companies where a single developer could rewrite some large parts of a product over a weekend and it failed, some did not fail also. But that code never went into production directly.
>
> I do believe this story not being true. The point of it is also sketchy, is it to promote bad code and it is ok if it works?...

**@skeptiq** · 1 upvotes

> Ha ha.. that's why I'm writing for some time only procedural and functional code that my colleagues claim is "spaghetti". Mine always works - good enough.

## Similar posts on daily.dev

- [Clean Code Is a Guide, Not a Gospel: A Reflection on Pragmatic Software Architecture](https://daily.dev/posts/clean-code-is-a-guide-not-a-gospel-a-reflection-on-pragmatic-software-architecture-jfyonyijq) · ITNEXT · 75 upvotes · 5 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
- [Clean Architecture Explained: Building Software That Stands the Test of Time](https://daily.dev/posts/clean-architecture-explained-building-software-that-stands-the-test-of-time-acdblphuf) · Medium · 1 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#architecture](https://daily.dev/tags/architecture), [#observability](https://daily.dev/tags/observability)

[View this post on daily.dev](https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe","headline":"Interesting experience with legacy vs clean code.\nIt's that old struggle to harmonize the exact with the artistic, the engineer with the artisan, while dealing with due dates and other real world expectations.","text":"Shared: Why Spaghetti Code Beat Clean Architecture","url":"https://daily.dev/posts/interesting-experience-with-legacy-vs-clean-code-it-s-that-old-struggle-to-harmonize-the-exact-with-e74verowe","datePublished":"2025-12-08T17:30:17.720Z","dateModified":"2025-12-08T17:33:39.484Z","author":{"@type":"Person","name":"Isaac de Andrade","url":"https://daily.dev/andradei","image":"https://avatars.githubusercontent.com/u/2653546?v=4","description":"Perpetual student. Project Manager. Programmer.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":58660}},"image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":52},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":18}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/5zFSwRdWa"},"comment":[{"@type":"Comment","text":"dibs on the senior dev having skill issues. Just saying.","datePublished":"2025-12-10T09:47:19.267Z","url":"https://daily.dev/posts/e74VErOWE#c-lV0ZVMBwK","author":{"@type":"Person","name":"Ezpie","url":"https://daily.dev/ezpie","image":"https://avatars.githubusercontent.com/u/104765117?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"The title is somewhat misleading. It was not so much that spaghetti code supersedes (which is what I got from ‘beat’) clean code in a production environment, it is that developers should test early and test often and it seems that their ORM strategy or database design needed improvement. I do agree that infrastructure and observability (with a robust query performance metric) should be part of the initial planning.\nInteresting side note. I was part of a project that depended on legacy C++ code that used absolutely no design patterns other than OOP (and poorly). The youtube host mentioned 4000 lines of spaghetti - try 8000 lines of if else statements embedded sometimes 7 levels deep with over 50 goto statements to manage flow.\nWhen that code was ported to C# it failed miserably not to mention that the legacy and port code was spaghetti, made no distinction between backend and frontend - and I could go on.\nIn the final analysis, I think there is a delicate, if not artistic balance between OOP and functional programming that adheres to clean code and tackles a new project holistically with infrastructure leading the design.\nHoping to hear what others think.","datePublished":"2025-12-11T19:13:02.790Z","url":"https://daily.dev/posts/e74VErOWE#c-lhT6dGfUP","author":{"@type":"Person","name":"Dan","url":"https://daily.dev/arkmob","image":"https://lh3.googleusercontent.com/a/ACg8ocKCo-HLknsFcRm2wKXOy7ipK4ngNWqTIL_4lc4lZqyt4uqOGww=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"I love how comments here and in yt are littered with “Clean code good, bad usage, bad senior, spaghetti code bad, unmaintainable, wisdom needed” despite this entire situation proved it’s just BS.\nOver 14y I seen Clean Code projects so slow, so bloated with abstraction finding root of a bug was 4h effort. And this was OK for everyone. They just said “we are charging by hour”\nIs this maintainable? Kind of, every dev know commonly agreed project structure. Everything else doesn’t matter. It can be slow, 60% of code can be copy-paste boilerplate to point actual business logic is buried in class constructor function call so hard it’s merely a 1 line in 9 lines of magical ritual of BS “more readable” mantra said by mindless cultist 😂","datePublished":"2025-12-13T19:17:57.519Z","url":"https://daily.dev/posts/e74VErOWE#c-gFtWLxKD8","author":{"@type":"Person","name":"Adrian","url":"https://daily.dev/tsumanu","image":"https://media.daily.dev/image/upload/s--bbTggVj0--/f_auto/v1729056978/avatars/avatar_o83yJZhDlLH2O7iL41pEg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"This is quite a weird story about one developer doing “clean code” and failing miserably at it. One sided story. There was no load testing, cache testing and frankly, the story does not pass the smell test. I think it is not true. There might well be truth in the story. I have worked at companies where a single developer could rewrite some large parts of a product over a weekend and it failed, some did not fail also. But that code never went into production directly.\nI do believe this story not being true. The point of it is also sketchy, is it to promote bad code and it is ok if it works? That seems to be the case.\nAs for the story as it is told, why did it not cache correctly? Was that impossible fix? After all, the code was perfect as he claims. You simply fix the bugs. You load test it. It is easy. And without a doubt, it is easier to fix good code than a spaghetti crap.\nBad story, told in a smug way.","datePublished":"2025-12-15T12:31:52.190Z","url":"https://daily.dev/posts/e74VErOWE#c-1kwyk64Ah","author":{"@type":"Person","name":"Trausti Thor Johannsson","url":"https://daily.dev/traustitj","image":"https://lh3.googleusercontent.com/a/ACg8ocJP2b_9n1STHZ_YtevY9ZAgEvXSN3VB1Q3MGjNqcnfrsm5wjkhR=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Ha ha… that’s why I’m writing for some time only procedural and functional code that my colleagues claim is “spaghetti”. Mine always works - good enough.","datePublished":"2025-12-08T23:12:05.930Z","dateModified":"2025-12-08T23:22:14.120Z","url":"https://daily.dev/posts/e74VErOWE#c-JxR6pTDia","author":{"@type":"Person","name":"The Skeptiq","url":"https://daily.dev/skeptiq","image":"https://media.daily.dev/image/upload/s--OTJ1UWI6--/f_auto/v1738074563/avatars/avatar_ic83Smu6jxYTzCXCWtIZf"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/otqajuf6zdm9hfrwtlr9n","name":"Isaac de Andrade"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Isaac de Andrade","item":"https://daily.dev/sources/otqajuf6zdm9hfrwtlr9n"},{"@type":"ListItem","position":3,"name":"Interesting experience with legacy vs clean code.\nIt's that old struggle to harmonize the exact with the artistic, the engineer with the artisan, while dealing with due dates and other real world expectations."}]}
```

