Skip to content
DevMeme
6219 of 7590
AI ML Post #6817 · source on Telegram

Claude 4’s gorgeous but utterly broken thousand-line refactor

Description

The meme is a screenshot of a tweet by user “vas” (@vasumanmoza). The tweet reads: “Claude 4 just refactored my entire codebase in one call. 25 tool invocations. 3,000+ new lines. 12 brand new files. It modularized everything. Broke up monoliths. Cleaned up spaghetti. None of it worked. But boy was it beautiful.” Beneath the tweet sits a dark-themed VS Code window in split view: on the left a meticulously formatted TypeScript file with perfect indentation, on the right a generated README-style panel explaining the refactor. Everything looks pristine - consistent naming, dependency injection, spotless spacing - yet the joke is that the build undoubtedly fails. For seasoned engineers, it skewers the AI-powered “one-click refactor” fantasy where architectural beauty ships hand-in-hand with non-functional binaries

Comments

20
Anonymous ★ Top Pick The AI achieved the mythical 100% code coverage - every single line is executed exactly zero times in production
  1. Anonymous ★ Top Pick

    The AI achieved the mythical 100% code coverage - every single line is executed exactly zero times in production

  2. Anonymous

    After 20 years in the industry, I've learned that the most dangerous refactoring is the one that passes all the architectural review boards but fails the simplest smoke test. Claude 4 just speedran the entire 'rewrite it in microservices' consulting playbook in one API call - complete with the traditional outcome of a beautifully decomposed system that forgot minor details like actually working

  3. Anonymous

    Ah yes, the classic AI refactoring experience: Claude 4 achieves what every senior engineer dreams of - perfectly modularized, beautifully structured code that follows every SOLID principle... and compiles to a symphony of red squiggly lines. It's like hiring a world-class architect who designs you a stunning mansion, except none of the doors actually open and the stairs lead to walls. At least the git diff will look impressive in your next performance review - 3,000 lines of 'improvements' that technically qualify as 'high activity.' The real kicker? You'll spend the next sprint manually reverting to your original spaghetti, which suddenly doesn't look so bad when the alternative is 12 new files of elegant, non-functional abstractions

  4. Anonymous

    Classic LLM refactor: cyclomatic complexity −40%, a module graph worthy of an IEEE paper, and not a single integration test survived to tell the tale

  5. Anonymous

    AI refactors are architecture‑as‑a‑service: immaculate module boundaries, zero regard for transitive invariants - my CI is now a distributed system of compile errors

  6. Anonymous

    Claude's refactor: Achieved zero-coupling nirvana across 12 files - now each crashes in splendid isolation

  7. Deleted Account 1y

    Indeed

  8. @RiedleroD 1y

    pls add the amount of Rs in carrot to the amount of Ws in strawberry and multiply the result by 1.5

    1. @Art3m_1502 1y

      I think if we continue asking such questions AIs will just answer 42 for everything

      1. @RiedleroD 1y

        ok good, that means I can distinguish them more easily from humans

    2. @yontouryuu 1y

      Why i shoud do that bruh?

      1. @RiedleroD 1y

        guess you won't be trusted then 😔

        1. Deleted Account 1y

          You have the option to untrust someone?

          1. @RiedleroD 1y

            yeah

    3. @nicovillanueva 1y

      Oh damn, Claude 3.7 did it right We're doomed

      1. dev_meme 1y

        Wdym 3.7?

        1. @nicovillanueva 1y

          I asked copilot, using the Claude 3.7 Sonnet model (Thanks, company subscription)

        2. @NaNmber 1y

          do you use next server as a main backend or as a bff ?

    4. Deleted Account 1y

      Thats some easy math

  9. @pooyabehravesh 1y

    Bro had us in the first half, not gonna lie

Use J and K for navigation