With the advent of agent generated code, everyone's seeing a lot of code generated, in part at least, with the help of the agent. I'm currently reviewing some code done by a junior developer. It's in a somewhat legacy (6 years old?) Swift code base. The submission is out of step with the conventions of the rest of the code base, and has lots of "best practice" things, but that aren't really relevant to the current problem. And the object design is terrible.
But, the code works fine and fits the desired bill.
I find myself wondering, in an age where LLMs reason about and generate the code, how much value should I place in code/structure readability? It's a very intrinsic value for me. But maybe this is a case where one's aged experience becomes a liability, where spaghetti code isn't a problem anymore of the LLMs reason about code differently. What are others doing?
ahmed-fathi•1h ago
The old argument was humans read code, so write for humans. The new reality is LLMs also read code, and they read it differently. They don't get lost in deep nesting the way a junior dev does, but they are surprisingly sensitive to naming ambiguity, inconsistent abstraction levels, and context fragmentation across files. A well-structured codebase gives the model a coherent "world model" to reason within. A spaghetti codebase gives it conflicting signals, and it hallucinates confidently in the gaps.
So the argument for style hasn't disappeared it's been redirected. You're now writing for two audiences the human reviewer and the model that will modify it next.
The part I'd push back on in your framing "the object design is terrible" is not a style issue. That's the part that actually breaks down under AI-assisted development. Models are very good at generating locally coherent code and very bad at maintaining global architectural integrity across iterations. Bad object design doesn't become invisible to LLMs, it compounds. Every subsequent generation inherits and amplifies the structural confusion.
travisgriggs•49m ago
Is there any published work on this? Or just more of an observed accusation?
ahmed-fathi•39m ago