r/coding • u/OfficialLeadDev • Jun 30 '26
AI-generated code sparks production confidence crisis! 35% of engineering teams won't ship their own AI-generated code.
https://leaddev.com/ai/ai-generated-code-sparks-production-confidence-crisis
282
Upvotes
53
u/creaturefeature16 Jun 30 '26
I guess the other way to look at this, is 65% ARE shipping AI generated code? And is that because they do feel it's worth shipping, or that they're just hitting LGTM and moving on due to the inability to review properly?
Edit - non-paywall link: https://archive.is/ImiKu
20
u/LessonStudio Jun 30 '26
It is so easy to just let it loose and generate all kinds of "functionality".
I then look at what it generated and find flaw after flaw after flaw. Some are minor, like magic numbers, or mixing in constants which every other developer would put at the top of the file.
Threading issues, or using weird ass methods to achieve things which could be easy and clean. Like bringing in a linear algebra library to do some extremely basic math which isn't time sensitive.
I've stopped it from doing these things. Now, I have it give me one off samples. Complete working samples with a main function, and often the single function I am looking for. If I am looking for an unscented kalman filter, then that is it. Then, like an example I found on the internet, I incorporate it into my code.
I also get it to look through my code to find bugs, or anything which could be better. It often finds little things. I read through those suggestions, and act on the ones I want to, not just having it make the changes.
The code I ship, is the code I believe in.
5
u/cgt303 Jul 01 '26
I just joined a new team after a reorg at a F500 company and I swear there is no way my teammates are actually reviewing things with the speed at which PRs are merged. It’s a brownfield project after 6+ months of vibing and the code is so jacked up that trying to review something properly would include large refactors. I’m talking a 5500 line service, random/incorrect configuration and one function that makes 6 different db queries.
I’ve gotten to the point of doing some manual testing and then rubber stamping the PR. I’m barely looking at what Claude generates anymore because what’s the point? A code review is useless. I’ll never be able to review as fast as the slop can be churned out. Claude generates unit tests but we routinely find bugs so they seem fairly ineffective. So production confidence? Don’t make me laugh……
6
u/yopla Jun 30 '26
As an engineering manager, you learn to let go. I've signed off on thousands of release with code that I didn't have time to read, written by human devs I knew had barely average skills. It was externally tested, it did the job. Ship it.
I get that dev are entering an unknown psychological territory and it will take a bit of time to get used to be a conductor and not a musician but honestly for 90% of software that fear is unwarranted.
And the hard truth, Claude is better than half of the dev in my team, by a mile once the project is properly set-up.
1
u/Old-Personality-8817 Jul 01 '26
so ai slop doesn't work?
1
u/lamyjf Jul 02 '26
The same as being a team lead with juniors. You have to up your spec and testing game.
1
u/bestjaegerpilot Jul 02 '26
that's cuz 35% of teams don't understand that AI engineering is applying the same software eng principles to AI.
1
u/usually_guilty99 Aug 10 '26
Accountability is a bitch!
The 35% number isn't what worries me. The other 65% is.
AI solved code velocity. Now we have to solve confidence at the same speed.
0
u/obetu5432 Jun 30 '26
how much of total human written code is shipped to production? 1%?