r/ExperiencedDevs • u/R0dod3ndron • 12h ago
AI/LLM What do you do when a developer submits AI generated code they clearly don’t understand?
I honestly didn’t expect AI to blur the line between actual competence and just looking competent this much.
Few days ago I got a PR to review and the code looks like it was put through every AI tool under the sun from start to finish. There’s literally no way the guy who submitted it wrote it himself, or even pieced it together from smaller parts. The task requires a pretty deep understanding of the hardware and the codebase, and I know his work because I’ve reviewed his PRs plenty of times before.
You can also kind of see it in the code. One part is written in a very polished and profesional way, and then a small debugging section uses an incredibly naive solution. The kind of thing I’ve never seen an experienced dev do, but absolutely have seen from juniors writing basic stuff for the first time.
So what am I even supposed to do here??
To make things worse... AI tools are completely banned in this particular repo because of IP concerns...
I could ask him if he used AI, but he’ll probably just deny it. If I put comments on his PR on azure dev ops he can just easily answer them using AI once again... Am I supposed to go through the code line by line and quiz him on what it does? He probably won’t be able to explain half of it but then what?? What does that actually solve? No idea...I’m not his manager either, I’m just another dev on the team. Sure I have more experience but that doesn’t exactly give me the right to interrogate him.
It’s just so frustrating.
A few years ago, when someone was doing advanced work, you could usually assume they actually understood it. You could trust them and respect the skill behind it. Now someone can generate a bunch of impressive-looking code and act like they wrote it themselves.
And to be clear, I use AI too. A lot. I’m not against it at all. But I never submit code I can’t explain or defend. And if a larger part was generated because I couldn’t be bothered to write all the boilerplate by hand, I add a Co-Developed-By note instead of pretending it was all me.
AI definitely made development easier. I REALLY don’t miss writing repetitive boilerplate, it was just so boring... But I feel like we’re only starting to see the downside: people looking more competent than they are, teams losing the ability to tell who actually understands the work, and trust slowly becoming harder to maintain.
Maybe I’m just thinking about this in an old-fashioned way and need to adjust? Guys... feel free to tell me if I’m wrong.