r/coding
•
u/OfficialLeadDev
•
Jul 07 '26
•
1
Code maintainability plummets in the AI coding era
https://leaddev.com/ai/code-maintainability-plummets-in-the-ai-coding-era
393
Upvotes
93
u/WoollyMittens Jul 07 '26
The old code seems bloated because of the 300 edge cases in the poorly documented business logic, which both you and the AI are blissfully unaware of.
113
u/EliSka93 Jul 07 '26
There goes the "AI will make it easier to justify refactoring older code bases!" argument...
24
u/_h4xr Jul 07 '26
Code quality going down is partly related to the fact that people reviewing the code are bogged down.
At my organization, what used to be 100-200 LoC PRs and 3-4 PRs a day, have suddenly become 1000+ LoC PRs and 10 such PRs
Agents create code, agents mostly review it, production issues comes back to humans.
With Mythos, now even hundreds of security tickets are also showing up at same time. The whole incentive structure is burning the human out.
I kind of started solving this for myself (by giving agents more semantic context). The workload has reduced to some extent for sure.
My focus has now shifted on code consistency and patterns
19
u/MokoshHydro Jul 07 '26
Code maintainability was always "development process" responsibility. It doesn't matter who actually wrote code: junior, senior or LLM; till it follows guidelines. I.e. have comments, tests and appropriate coverage.
In modern era, those guidelines should be as strict as possible, cause LLM can easily pollute codebase with unreadable mess.
9
u/neopointer Jul 07 '26
Nobody cared about maintainability before and now that code is "disposable", even less.
I don't think that's good, far from it. But the ones that care about it were always in less number anyway, with AI this only got worse.
17
u/nadmaximus Jul 07 '26
AI can't code for shit.
7
u/Downtown_Isopod_9287 Jul 07 '26
I suddenly have a weird silver lining take on this:
This is horrible, BUT — for the past 10-15 years management and indeed other devs have been aggressively pushing human-made code slop under the fig leaf of “agile.” Like this is literally nothing new, and I think the excuse that this mode of code dev somehow “trained juniors” is completed bullshit (there is, in reality, no requirement to professionally write garbage code before you can write good code; it’s fucking nonsense and gross mismanagement).
While both scenarios suck I would like to think that now that the slop machine is automated and no longer limited by payrolls that there’s gonna be some new, real, software engineering.
1
u/Terrible_Match_9484 Jul 08 '26
do u think the issue is mostly with the generated logic or just the lack of documentation, too
1
u/keithstellyes Jul 10 '26
Yup I've definitely AI generated code to often be less readable than if a human wrote it, or otherwise be overly complicated
0
u/dbenc Jul 07 '26
reminds me of the old "email will save so much paper!!" and the reality that it caused an explosion in paper usage
-7
u/LocoMod Jul 07 '26
Skill issue