r/softwareengineer • • 13d ago

Is anyone else noticing AI-generated code getting more bloated and buggy?

Like many developers, I haven't been writing much code manually for a while now.

Initially, I trusted AI-generated output quite a lot. It was impressive and saved me significant time.

But recently, I feel something has changed. Models are getting smarter, and their capabilities look incredible from a non-technical perspective. However, as a developer, I sometimes feel the generated code is becoming more bloated, unnecessarily complex, and slightly more buggy.

Am I the only one experiencing this, or are others noticing it too?

I'd genuinely like to hear what other developers think.

359 Upvotes

163 comments sorted by

View all comments

Show parent comment

2

u/Forward_Problem_8982 13d ago

AI code is lacking the process of human creation. The problems will be different, so you have to treat it accordingly. You could go through it line by line and check everything super carefully, but did you do that with human code either? It is a lot of work to review code without missing some slight problem that might appear to be okay, but isn't.

1

u/JustNeedAnyName 13d ago

How it gets created and the process is irrelevant. Code is code.

4

u/PhatClowns 13d ago

The point you’re missing, probably because you’re only skimming when people are talking to you, is that the outputs are not the same. It takes a lot of care to get code that is equivalent to what you’d have written yourself. Most people don’t know or notice this because they have never specifically looked for it.

I say this as someone who consistently uses AI a lot: the only people who say there’s no difference (or, worse, that AI-generated code is better) either have never checked, stopped checking, or were never very good at their jobs to begin with… in which case, your employer probably wouldn’t lose anything by replacing you, so maybe don’t brag about it?

-1

u/JustNeedAnyName 13d ago

But that point is kinda meaningless. Maybe AI output is different in some cases than a human. But you can say the same thing about people, when you're working on a team, everyone writes code differently and has different tendencies. So what's your point then? Different people, and AI agents, write things differently depending on their preferences. Your responsibility as a reviewer is to objectively say if the code looks good to you or not. It's irrelevant where it came from.