Clean code in the age of coding agents

Battle lines drawn: “Keep it tidy” vs “Let the bots sort it out”

TLDR: The post says tidy code still helps AI coding bots, which struggle with limited “memory” and waste money wading through mess. Commenters split between “clean code is dead” and “structure makes agents shine,” with jokes about Uncle Bob vs Uncle Bot—stakes are speed, cost, and reliability.

A new post argues that “clean code” still matters even for AI coding assistants, because bots have limited “memory” (context) and slogging through messy files burns cash and time. Cue the comments section going full soap opera. One camp is all-in on neatness: if your house is clean, the robot vacuum won’t choke. Another camp basically yells: who cares—bots will rewrite it anyway.

Insensitivity brought the heat, claiming AI models copy “the look” of your code but sneak in hidden tangles, adding that bots think clean code just means breaking everything into tiny pieces. fooker went nuclear: clean code is the new floppy disk, saying it “does not matter any more.” BeetleB piled on with a comic eye-roll at the “Clean Code cult,” warning not to tell a bot to write like Robert “Uncle Bob” Martin. Meanwhile, ambewas painted the opposite picture: with clear roles, standards, and a bot-on-bot review loop, agent-written code can be shockingly solid. jake-coworker split the difference—when agents build on patterns, it’s magic; when they don’t, it’s a “make it work” rabbit hole.

The memes wrote themselves: “Uncle Bot vs Uncle Bob,” jokes about “AI interns cleaning their room,” and a reality check on the myth of “infinite memory.” The stakes? Speed, cost, and whether we teach robots to love tidiness—or let them bulldoze the mess and start over. Read the post here.

Key Points

  • The article differentiates code “value” from “structure,” citing Robert Martin’s Clean Architecture.
  • Poor code structure increases long-term costs by slowing feature delivery and amplifying bugs.
  • Clean code traits include readability, simplicity, modularity, and testability, enabling easier change.
  • LLMs and coding agents face context limits; larger contexts degrade performance and increase token cost.
  • Practical steps include specifying structural goals in prompts, keeping repos consistent, and reviewing agent outputs.

Hottest takes

"They think 'Clean Code' means splitting into tiny..." — Insensitivity
"clean code does not matter any more" — fooker
"Don’t instruct the LLM to write code in the form of Clean Code" — BeetleB
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.