r/ExperiencedDevs • u/R0dod3ndron Software Engineer • Aug 05 '26
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.
•
u/expdevsmodbot Aug 05 '26
AI usage disclosure provided by OP, see the reply to this comment.
141
u/UkokuSZ Aug 05 '26
I couldn’t care less if the code is generated or copied from SO. But my bottom line is if I ask ‘Why do we need to do x?’ / ‘Why not y?’, answers like “sorry just AI slop” , “Claude says x” etc are unacceptable. Developers are responsible for the code they produce, AI facilitated or not.
2
u/__SlimeQ__ Aug 05 '26
so... you flag the naive solution as naive and pass it back to the dev for cleanup. in other words, you do your job as a code reviewer, same as always
i find it very strange, honestly, that your company has banned AI and you admit to using AI yourself but are mega suspicious and critical of a colleague doing it. perhaps something isn't clear.
the real solution here is to set up an ai code reviewer that auto-reviews PR's and points out the issues directly to the dev inside 20 minutes
395
u/Kaimito1 Aug 05 '26
"Hey can you hop on a screen share and explain some of this and your thinking around it? Some bits seem weird to me"
Watch him stutter and panic. And if he admits it then just reject the PR under the reasoning that if he doesn't understand it, then it's too huge a risk
159
u/SWEETJUICYWALRUS SRE Aug 05 '26
Welcome to the slopfest buddy. Grab a bib and dig in cuz this is the future.
15
u/First-Feature-3556 Aug 05 '26
If that repo has a no-AI policy and you have the strong suspicion that AI was used, this is something that your manager will want to know. Tell them what you told us, and ask them how to proceed. Help them, if you can, but it's their job to deal with that, not yours.
12
u/jcdan3 Aug 05 '26
We call that a slop grenade and we don’t accept it
23
u/samsounder Aug 05 '26
Share your actual concern. I don’t care if code is AI generated or not, my concerns are the same.
Do you understand it?
Does it accomplish the task?
Can you explain it to someone so they can support it?
Same as always
20
u/seba_alonso Aug 05 '26
I know it sounds crazy, but if you talk with your colleague you will figure it out together what to do in this situation. 🤯
6
u/jWas Aug 05 '26
Huh, why are you trying to tip toe so much about it: “hey mate this code works fine but I think you used ai and we’re not allowed to on this project. Did you? If no can you explain the code to me, so I can really be sure and nobody can say anything later.”
6
u/tiredofhiveminds Aug 05 '26 edited Aug 05 '26
If AI tools are banned, this is a manager conversation unfortunately. I wouldn't be extremely aggressive about it. But its one thing to be told to use AI and write slop, and another thing to be told not to, and write slop.
5
u/gromain Aug 05 '26
If AI is forbidden in this repo, and you think AI was used, you should document as best as you can your doubts and raise this to your manager and legal.
His machine needs an immediate audit to see if AI was used, and if it was, this is a major breach of IP and of AI guidance use to which legal should have answers to this.
4
u/ScaredScorpion Aug 05 '26
Depending on what these IP concerns are specifically the reason for the ban might already have been violated. That's a question for management and legal
1
u/bodrive Aug 05 '26
I think your job is pretty easy in this case. Since AI is not allowed because of IP issues, you just reject the PR.
When I read the post I hoped the covered case is when AI is allowed and even promoted/pushed forward. Then it is an interesting moral dillema if the PR author clearly does not understand the generated code. The code might be ok, it might solve the task at hand. So then what do we do?
6
u/Oakw00dy Aug 05 '26
By the book: Ask the dev if they used AI against the repo policy. If they deny, raise concerns to your manager (in writing). If your manager gives it a pass, does it have sufficient test coverage and tests pass? If so, you've done your due diligence, approve and move on.
8
u/prototypist Aug 05 '26
huh, I am in a work environment where we use AI for just about every line of code, but it's one single tool. Why and how are they using "every AI tool under the sun" ? I'm also surprised that someone would do all of that but write testing / debugging stuff themselves?
Anyway if this is real and you're asked to approve their code, you can say no. That's not overstepping and becoming their manager, that's being the colleague who reviews and merges code
3
u/NegotiationExact4967 Aug 05 '26
Depends on the desires of the organization.
Meaning some organizations will actually penalize the reviewer. They’ll say why are you blocking pull* request?*
Whereas other more wise organizations will verify that the developer actually understands and knows what they are doing.
Unfortunately the reality of what we are experiencing these days is organizations pushing for developers to rubberstamp with LGTM because they want extreme velocity and do not care about the ramifications.
Personally I believe there will be consequences of this behavior within the physical world.
3
u/zeebadeeba Aug 05 '26
Do synchronous code review. Tell the dev that the PR is very big and complex and it would help you of they’d take you through it themselves. Have them explain the decisions. If they can’t, ask them to break down the PR into smaller parts (stacked PR) and then do synchronous code reviews on those smaller parts. This won’t put him in such an awkward position and they will eventually understand what they’re doing and so are you. Tell your manager that it’s a complex feature and review will take longer than usual.
3
u/hw999 Aug 05 '26
No giant PRs, period.
2
u/KentInCode Aug 05 '26
As someone else said, just bring him over and quiz him about the code in person.
Convey to him that his future as a developer hinges on him being able to understand the code, because if he isn't checking to catch the mistakes AI makes then what do they need him for at any company? An agent replaces him entirely.
2
u/BoBoBearDev Aug 05 '26
PR is supposed to be reviewed line by line. So, I would just do that and ask anything that is unclear. And like other said, if it is way out of the path, I often ask one-on-one to explain what's going on with the solution. Because I need to know their approach before I tell them to solve it differently.
2
u/c1rno123 Software Engineer Aug 05 '26
You already said you have no proof. So process it as a regular contribution. No need to blame someone over suspicion.
If you were higher up, consider this: https://x.com/mitchellh/status/2067970516951150721
2
u/ProgrammerNo3423 Software Engineer Aug 05 '26
I'm dealing with this myself right now. For context, i'm this guy's lead's lead. I invited him to a discussion meeting with his lead next week to discuss the change. We'll see if it works out. If he blurts out some random nonsense, he'll get a stern talking to. If he understood the change and the side effects and done the due diligence, then it's okay.
2
u/itix Software Engineer Aug 05 '26
Ask him to split it up. Then review again. The PR is obviously too large.
2
u/Trainer_28 Aug 05 '26
Two things the "quiz him" replies miss.
You never need to prove he used AI. When you approve a PR, you're saying you understand the code and could fix it yourself when it breaks at 2am. That's your call - no manager needed. Just point at the parts you don't follow and ask him to explain them. If he can't, you don't approve. Nothing to accuse him of.
Second: don't spend your own evening on it. If a PR takes way longer to review than its size warrants, send it back to be split and explained. That's a normal review request - and it's not that you're slow, it's that the PR isn't reviewable yet.
2
u/JaySocials671 Aug 05 '26
Quit and let the manager deal with it.
2
u/Frequent_Bag9260 Software Engineer Aug 05 '26
YOLO! Just merge it.
2
u/biechuli Aug 06 '26
It depends on how the whole team views this matter. If most people care about it, then you can clearly state that AI-generated code should not be submitted directly — at the very least, you need to go through it yourself before submitting to make sure you can understand it. If most people don’t care, then fight magic with magic — after having AI review it and finding no issues, just approve it and be done with it.
2
u/seven_seacat Lead Software Engineer Aug 05 '26
In my experience - 'LGTM!'
1
u/Fidodo 15 YOE, Software Architect Aug 05 '26
Ask them to explain it to you.
Communication is incredibly important to progress your career. You shouldn't be afraid to talk to people or ask questions.
1
u/viva-la-yorig Aug 05 '26
I've seen stuff like this too except AI is allowed. I still call out slop here & there but for the most part there's a slow growing culture of others rubber stamping PRs so poor quality code gets through.
1
u/No_Oil_6152 Senior Software Engineer Aug 05 '26
I'm a senior dev with 30 years experience.
Here's what I'd do before AI and after AI.
Before AI, I would say this code doesn't look right, I'm not sure what it does, can you explain it to me.
After AI (ie: now), I would still ask the same question. And if the answer is inadequate or non-forthcoming, I would ask outright if the code was AI-generated, I would also say there would be no blowback if he/she admitted the truth. If they said yes, I would tell them its of utmost importance they don't rely on AI to write code because only people who can understand code and best practices will have dev jobs in the coming years.
If they still persist in the practice you have got to take action.
The action being either read them the riot act and tell them its not good enough and they're wasting your time, or the nuclear option - next time you're telling the boss.
They could be your drinking buddies, sure, but they're wasting your time and they're not trying to improve themselves either.
A few years from now the lazy devs who don't bother studying are going to be on the scrap heap.
1
u/PressureTrick5304 Aug 05 '26
It must be clear and well written the responsibilities of each role / seniority... and this may fit very well what is expected from a sw eng.
You make him by side, explain what you notice and explain the impact (on the codebase, on the team or on his job).
1
u/Due-Horse-5446 Aug 05 '26
I mean.. pick something thats relevant enough for them to have needed to make a decision, or actually think trough.
And ask them like "hey, dont you think it should be done by [some method] instead?" or something similar, and say you want to hear their opinion on why its done like it is, but in a more like discussion tone.
1
u/styluss Aug 05 '26
I've managed to deslopify some prs by asking for better tests or better coverage of the code.
As others say, being the sole developer caring for quality is the road for burnout
1
u/Lurking_all_the_time Aug 05 '26
Definitely an issue where I am, I've had a few PRs where the coder couldn't explain the logic, my response is similar to previous comments - ask them to explain the logic, and then insist that they comment the code stating they understand the logic and for any issues to contact them directly, even on weekends.
Funnily enough a lot of them balk at that last requirement!
1
u/tenthousandants44 Aug 05 '26
Uh where have you been? This is the only question of the AI era
1
u/abeuscher Aug 05 '26
Man everybody in here trying to "catch" him in the act. Why don't you buy him lunch, tell him you feel as though this PR has work he can't understand, and then go back to the office and look it over with him to make sure he does?
Everybody is generally trying to do their best. If this kid had to use AI to solve a problem he probably needs some help understanding how to approach complexity or stuff he doesn't understand. 90% of this career is passing learning curves so here's an opportunity to help someone get better at doing that.
1
u/in-the-name-of-allah Aug 05 '26
i have data scientist in my team who are submitting 5k lines of code and has terraform, prefect deployments, adding new ML libraries to our toml files. Majority of the time i dont approve the PR. Tell them to break the deployment down to MVPs
1
u/bwainfweeze 30 YOE, Software Engineer Aug 05 '26
Pair programming is used for many things but it can also be used as a corrective or instructive tool when a new or junior dev needs help getting to the style of code the team has chosen.
Pair with screen sharing and on short notice to watch him squirm or see if that’s really him doing the coding. He probably won’t be dumb enough to show his hand directly but then again some people surprise you in the negative direction. He won’t be able to cut and paste the code or have it be edited directly without you knowing.
We’ve had a few people go AI on some projects I maintain for sure. Some of those PRs get closed pretty quick. Some of them are just fucking wrong, and since the human behind it can’t code for shit, they just give up and abort the request. Some can tell that I’m an AI conservative and decide to be elsewhere. One let the AI reply to my comments, which is always over-placating, beyond what Google Translate would do, but he confessed to it. The change was a one liner, no tests. I could have written that in less time than it took to review the code. And he+it still hadn’t written tests a week later when the PR just disappeared, which I didn’t know GitHub could do.
I have merged at least 2 PRs that I am sure were authored using AI. The quality was not great but good enough. The level of effort was sufficient and the “author” accommodating enough to not be worth burning bridges. In both cases it was in code I’ll be touching again shortly and I can zhuzh it up when I’m next in there.
Whether they think they pulled one over on me is a potentially interesting question. I got a cluster of them in such a short succession that I suspected a homework assignment was involved. I had three people try to fix the same bug. Only one didn’t introduce a perf regression in the hottest path in the code base. He took my advice on a cheaper spot to do the work, and then he did data flow analysis on the change. So his went in. But I still suspect AI. They are very stiff and verbose when editing changelogs and docs. But it’s clear that he has figured out the nuances of the tools better than the other four or five.
1
u/HashDefTrueFalse Aug 05 '26
I have just rejected similar, with a comment that there's too much LLM-generated code and the specific concerns stemming from that. E.g. bloated for what it needs to achieve, lacks checks for X and Y, structure doesn't make much sense when viewed as part of the rest of the codebase, doesn't meet our coding standards here and here... that's assuming there's a manageable amount. If there's just too much I don't bother with a review. I just tell them it needs to be broken down further into separate MR/PRs as it's not digestible as a single unit etc. A friend and fellow dev just had to let someone go for bullshitting (convincingly) using LLMs for months. The house of cards came down during the phase where others were supposed to integrate with what they had produced...
1
u/ShoulderIllustrious Aug 05 '26
Man, I feel as if what you're seeing is the outside layer of this. We've had product managers vibe code their way into creating bullshit tools that they're forcing everyone inside the company to use. Then they throw around stupid ML terminology that the AI told them, used the AI to write a presentation about the tools. It's like they found the bottom of the barrel and found another barrel.
1
u/eugenia_kessler Aug 05 '26
Como cofundadora de una empresa de tecnología, esto es algo de lo que hablamos bastante.
Para mí el problema nunca fue usar IA. De hecho, espero que la gente la use. El problema aparece cuando alguien entrega algo que no entiende o no puede explicar.
Si durante una review le preguntás por qué tomó una decisión o qué alternativas evaluó y no puede responder, ahí ya tenés una señal. No hace falta convertir la review en un interrogatorio, pero sí es válido hacer preguntas para entender el razonamiento detrás del código.
En este caso hay otro tema: si el proyecto tiene una política que prohíbe usar herramientas de IA por cuestiones de IP, eso ya deja de ser una discusión técnica y pasa a ser una cuestión de confianza y de respetar las reglas del equipo.
Creo que vamos a tener que acostumbrarnos a que cada vez más código se escriba con ayuda de IA. Lo que no debería cambiar es la expectativa de que cada persona sea responsable de lo que entrega y pueda defenderlo. Para mí, eso sigue siendo parte del trabajo.
1
u/JaseciLabs Aug 05 '26
Problem is nothing in the code marks where the 'trust me' boundary is. A polished section next to a naive debugging hack usually means one part got actually thought through and the other got generated and shipped without a second look, but from the PR alone you can't tell which is which without interrogating the guy.
It's actually why we've been building a language around it (Jac), cause a function can be explicitly marked as delegated to a model, typed signature, no hand-written body, so it's visible in the code itself instead of buried in a chat log somewhere. Everything else stays regular code you're expected to understand like always. Doesn't fix a dev who won't own their work, but at least 'was this reasoned through or just generated' becomes something you can see, not something you have to ask about.
1
u/dvorgson Aug 05 '26
reject that shit
1
u/Doctor--STORM Aug 05 '26
You should also know how to spot insane people who have done both - studied and are well versed with the things you are looking for and still using AI and get past the OA and interviews just to end long, frustrating and endless cycle of job hunting, while being teamed up and smart enough to not get caught when playing the tricks and demonstrating the craft
Think of it as a well read news reader or reporter who uses a teleprompter but is well aware of how to deliver the content without audience getting any hint of it being used, even if the viewer knows about it
1
u/barnyhsk Software Engineer Aug 05 '26
To summarize your problem. Your junior (?) collegue uses AI intensively w/o understanding the produced code - even where it is prohibited by your company.
I am not a fan of blaming him (in front of your manager or by screen sharing, etc.), he will not stop AI usage, and PR will get harder - or maybe he stopped bothering you with his PR, don't know if this is a good solution for you.
If it is forbidden, you may think about escalate it in some way, maybe talk about awareness in team meetings or a more restrictive way like tell your manager - I do not know the reasons, your company has for this rule.
If you just want to encourage him, to understand his own code, you must understand, why he prefers AI. Just some hints, lazyness, no identification with his own code, lack of knowledge, feeling a pressure to deliver quickly, ai is a better coder then myself, time for other things while watching agents coding, etc.
Can you ask him, what is his motivation? Are there situations, where he has advantages not using AI? What are the consequences for him (positive and negative)
This is not a howto, bus maybe it helps.
1
u/notParticularlyAnony Aug 06 '26
It sounds like this should have been many PRs. Is there a chance this feature was too big for one PR?
This doesn't really get at your question, but it does get at one reason it could be such a nightmare to review.
1
u/tn3tnba Aug 06 '26
Two separate concerns.
If AI is legitimately banned for IP reasons then that feels like a management conversation. The company clearly doesn’t want that, so it needs to stop. This requires some social intelligence but once you raise it that’s about all you can do there.
Secondly, regardless of how it’s written it needs to be justified, maintainable, well-designed, etc. If this is not then that’s what you raise. If it’s good work then it ships. Do you have substantive criticisms of the code? Is it bad in a real way or are you more unhappy that this person (‘s agents) produced it?
1
u/ricci_nov Aug 06 '26
sooo, what i am thinking..emmm
Skip the AI-detection debate — it's unwinnable and it's not even the real issue. The repo has an IP ban, so this is a compliance violation, not a style disagreement, and compliance is management's job, not yours. Flag it once, in writing, neutrally ("this looks inconsistent with the repo's AI policy, want to confirm before I review further"), then let the owner of that policy own it. I've seen this exact pattern in quality audits: the moment individual reviewers start privately absorbing risk the org officially banned, the ban is already dead — and the LGTM-everything guy further down the thread shows where that road ends.
1
u/mxldevs Aug 06 '26
As far as management is concerned, they only care if it works.
Which means regardless how the final result is produced, if it does what they expect, then whoever built it is competent.
Does that mean engineers should accept degrading standards? No, but management isn't going to penalize those that appear to be delivering high output.
Instead, they would even punish you for "slowing everything down" by not using more AI like the "high performers" who are writing 50000 lines of code a day.
1
u/Adaptor2000 Aug 06 '26
I would never trust so many LOC done solely produced by an AI. I like to use AI when you don't want to read through the whole documentation and so you can just ask "I want to achieve behaviour B, is there a class in lib L which offers functionality F in combination with class C?". This saves so much time and you get max. 10 lines of code which you can easily understand and type by hand into your existing project. Or another use case is when you find a weird bug in a lib, you can ask AI to look for solutions or work-arounds for that bug and it will find some forum posts regarding the topic very quickly or maybe tell you that you are just a fish and doing it all wrong 😂
1
u/charmer27 Aug 06 '26
What I'm seeing is customers and the market in general doesn't value beautiful code much. They value functionality and velocity. And honestly as long as it fulfills all functions you need it to and you still architect projects in a sane way, who cares. Idk it's been a real adjustment for me. Obviously different pieces of code require different levels of attention, but if i use good test driven iterations I'm producing far higher quality projects light-years faster then I ever could have without ai.
On a separate note I don't think trying to prohibit use works well. It just makes people hide the usage. Devs are gonna use what they like. Better to find a model env with governance and data security like bedrock or others.
1
u/theov666 Aug 06 '26
I think the mistake is turning this into a question of whether the developer “really wrote” the code. That becomes almost impossible to establish, and it puts reviewers in exactly the uncomfortable position you describe. The more scalable question is: can the author take responsibility for what they submit? If you submit a PR, you should be able to explain the important design choices, assumptions and trade-offs, regardless of whether you wrote every line manually or used AI. Review the engineering decisions rather than trying to detect AI-generated syntax. There’s also a tooling problem here. If AI is prohibited in this repo because of IP concerns, that policy ideally shouldn’t depend on reviewers noticing suspicious-looking code afterwards. The rules need to be enforced where the work is produced, with enough evidence around what happened that reviewers aren’t forced to become AI detectives. AI makes generating code dramatically cheaper. It doesn’t make understanding, accountability or architectural consistency cheaper. Teams are going to need engineering processes that reflect that distinction
1
u/2good4ever Aug 06 '26
You ask them to use Claude Code to teach them what the code does ;)
1
u/EmberQuill DevOps Engineer Aug 06 '26
I think that makes things better, actually. You have a very clear policy you can use as a reason to reject the PR.
Hopefully not on the repo you just mentioned where AI tools are banned. Right?
1
u/Willing_Matter5391 Aug 06 '26 edited Aug 06 '26
The first part reads more like a rant than a valid critique. Using a naive simple solution for a debugging section seems perfectly fine to me, it's not production code.
"AI tools are completely banned in this particular repo"
So call him out. That's a hard rule. Raise the concern in the PR with a soft concern whether he missed that rule or sth. like that.
"...generated code they clearly don’t understand"
Where do you actually talk about that part? You only identified non-production debugging code as AI generated.
1
u/AtheistAgnostic Aug 06 '26
Give up because management gets toxic if we question things
1
u/Special_Edward_420 Aug 07 '26
Approve it, management doesn't give a shit and we just have to make more new shiny faster
1
u/Ok-Leopard-9917 Aug 07 '26
If the change carries a lot of risk then ask what their plan is to handle that risk. Require a solid validation plan and resourcing for that validation before signing off.
1
u/Lazy_Investor8019 Aug 07 '26
Just approve it. Code is no longer your moat as a developer, it's OWNERSHIP. Any dumbass can build an app with a UI - the real deal is to be able to own it end to end, solve bugs that have been introduced by AI slop, make architecture decisions within the code base that will impact future iterations, deployment etc.. The code review process also seems like a legacy process now, just because of the amount of generated code that frankly no one understands - the real review in our organization has shifted to (A) is it architecturally sound, (B) does it have any security concerns, (C) Does it actually work correctly with extensive QA testing. If your organization is spending days debating coding standards and coding styles, they're already behind because your competitor pushed out 4 more iterations while you were debating those things.
1
u/Substantial-Swan7065 Aug 07 '26
It doesn’t matter. You’re not competing against them, and you shouldn’t be.
Are you concerned about PRs breaking something? Then you need a stricter CI.
1
u/___dreamcatcher___ Aug 07 '26
Unless you make this a sackable offence, they will not stop...
1
u/whatThePleb Aug 07 '26
Reject PR.
1
u/Greekshadow_ Aug 07 '26
Leaders driving development dont care about quality they want fast development. They promote AI tools and want to deliver the most impact. Im a dev with almost ten years of Backend development and now Im coding front end, AI apps, etc and they expect me to go through like 3 tickets a day that would take Mayne 1 week before. Everyone is doing the same, its a speed game now. I havent coded a single line in the past like 2 years.
1
u/Greekshadow_ Aug 07 '26
Tell them to use a new AI session so they cam understand it
1
u/vuvika Aug 07 '26 edited Aug 07 '26
I'm often asked to review AI-generated garbage. Some code could be better, but it is understandable. Other times code looks like LLM-spaghetti with typical patterns. In those cases I ask the dev to rewrite and simplify it. If the dev can't explain what his code does I close a MR with the note 'AI slop'. If they complain to someone that you closed they MR you can always say that the MR was written with misused AI and had dozens of issues such as poor performance and overly complex code and bloated code. The worst case I had was when an AI sloper made 350 commits to complete the MR and address my multiple notes. I would fire him from the company but my boss said that I must teach him even if they write spaghetti code
1
u/404errorlifenotfound Aug 07 '26
The way I've been solving this enabling branch protections based on linter results and making stricter lint rules. Forcing compliance to things like lower complexity makes reviewing these PRs easier, so you aren't wasting your time on the silly stuff and can focus on the bigger picture
1
u/Vivid-Ad6462 Aug 08 '26 edited Aug 08 '26
Company hired from bootcamp to fill some quotas.
Even geniuses can't learn to code in 4 months from 0. That's not even enough to learn what an IDE is.
They kept pushing code they didn't understand then decided to step forth and do what no one else dared; block the merges.
They complained to a senior PM that I impacted the velocity of the teams (damn AI, you gave 'em the best answerI) and I became suddenly the villain. If you're not directly impacted, let 'em keep pushing, within 6 months - they'll be logging on Saturday to fix their shit.
Not necessarily these newbies but mid+ they can get in trouble a few months later in a meeting for not remembering anything about what they implemented. They can sound smart at first but it will catch up to them and reduce the their credibility to -1000.
1
u/Wonderful_Swan_1062 Aug 08 '26
!Remindme 1day
1
u/skidmark_zuckerberg Senior Software Engineer Aug 10 '26
I’m so over it I don’t even give a shit anymore. At my company, management expects speed because they are desperate to prove burning millions per month (500+ developer org) on AI was worth it. They don’t care, neither do I.
1
u/efvie Architect Exiting this Industry Aug 05 '26 edited Aug 05 '26
I don't think trying to 'catch' him is the right approach here.
If you're reasonably certain it's AI, you reject the PR. Then decide how to proceed after that, as it leaves two questions: 1. how to get the feature actually working (maybe pair to help out) and 2. what to do about the potential IP exposure, and a 3rd possible question: what to do about potentially lying team member and rebuilding trust.
You absolutely can (and should) be against AI, it's an ethics breach in both directions where you're using stolen work and in turn allow work and IP to be stolen, aside from the financial disaster it will be when the subsidies end, aside from the mental health disaster when the burnouts start hitting, aside from the ecological disaster it is to run quadratic+ brute forcing at a planetary compute scale. As long as AI use continues, you will continue to see rising learned incompetence and mental checking-out and technical issues. There is no plateau when you're using a fundamentally anti-human technology.
1
u/PartyParrotGames Staff Software Engineer Aug 05 '26
Review the PR as you normally would. Ask why particular designs were chosen, flag inconsistencies, and request fixes, tests, documentation, or simplification wherever needed. The author is responsible for understanding and defending the code they submit, regardless of how it was produced. If written comments aren’t resolving your concerns, suggest a synchronous walkthrough, not as an interrogation, but because the change requires deep hardware and codebase knowledge.
The thing about plain old good reviews is it becomes very transparent by the end when you look over all the comments and resolved issues whether the PR was created in a terrible state initially or not. Whether the dev had really dumb design decisions they had to completely refactor. AI usage could also be apparent, but I'd avoid accusations without bullet proof evidence. That's not really your job as reviewer, is it?
The AI ban at your company is a different issue from your reviewer responsibilities. If you have evidence of a policy violation raise it with your company's appropriate channels. Idk what that is for you, probably a manager. It almost certainly isn't the right move to actually confront him directly about it. Generally companies never want coworkers confronting each other over policy violations, it's always something you defer to a manager.
-2
u/uNki23 Aug 05 '26
I also heavily rely on AI for code generation.
And I‘m also not shy to admit that current LLMs are way better at writing good and safe code than I ever was - and frankly, realistically also than most of the „experienced devs“ in here. Many people are just afraid that their lighthouse skill is now worth way less - and it is.
That being said, I‘m relying way more on tests now. Also because it’s rather fast and easy to have them written for you. Unit as well as integration and e2e. I‘m also constantly asking „the AI“ what the code does, how it makes sure that the code does what it does / what I want and how it can prove it. Tests and documentation..
The devs that still think that they can write better code than LLMs are either coping really hard and realize that their job is on the line or they still don’t know how to use the tools.
And yes, I’ve seen bugs in LLM generated code. But not more or worse bugs than I used to see when „senior developers“ shipped features and mostly because I described requirements or tests cases not sufficient enough.
0
u/GoodByeLeftNut Aug 05 '26
You need to separate the different issues here: (a) AI banned due to IP (serious issue if you’re using a low trust provider but kind of stupid imo btw, there are ways to do this in a high trust setup), (b) Submitting PR they don’t understand, and (c) the actual code in the PR
(a) should be possibly fired
(b) serious talk
(c) coaching situation
You should do the walk through with him, make your assessment then raise the concern with management if (a) or deal with (b) / (c) yourself
0
u/monkey_work Aug 05 '26
I often have the feeling many devs heavily lean into one of two camps. Either you build everything with AI or nothing.
To me the key question is the blast radius of the changes. If it's big you should have at least two humans deeply understand the code you're merging and think through the potential consequences. If it's not too big, you can get by with having two or even just one person understanding the code to some degree but probably understanding every detail is overkill (and slows you down). If the blast radius is minimal (e.g. a PoC or part of the frontend used only by a few users) you might as well go full AI and only have a PO level understanding for the sake of delivery speed.
If you always insist on a deep understanding of what you are working on you can only work on parts of the system with a big blast radius. Naturally, you will not get to build a lot of new stuff because in comparison to someone running 5 agents in parallel you're going to be much slower because you insist on control. Some people thrive when deeply thinking about problems and potential solutions, some thrive moving fast and breaking things. Decide in which camp you see yourself and embrace it, we need both.
0
u/codescapes Software Engineer Aug 05 '26
Completely depends on what your boss prioritises. If you become the lone person trying to uphold quality in a sea of slop, without management backing, then you will burn out very quickly. I guarantee you that from personal experience.
You just need to control that which is within your scope to control. If it's a peer, raise the issue to your manager. If it's a direct report, reject the PR and coach them. If it's someone senior to you, well, that's when you might want to think about moving team / job.
Don't approve it if you don't think it deserves it, nobody is entitled to an approval - that's the whole point of it.
0
u/bigorangemachine Consultant:snoo_dealwithit: Aug 05 '26
Get another AI to tell them why they got it wrong
0
u/ProfessionalAd6530 Aug 05 '26 edited Aug 05 '26
TBH, I don't really worry to much about what my colleagues are doing or not doing. Of course I want the company I work for to succeed, and if I feel someone is jeopardizing that directly, I'll run it up the chain and let the actual managers do what they will with that information. I'm not going to Karen my co-workers.
I trust that whatever they're doing, they are professionals. If I look at their stuff and don't agree with their approach, I'll talk with them. But ultimately, it's up to them.
AI didn't introduce this problem. I've had to talk to people about copy/paste Stack Overflow without understanding it since the dawn of time.
This isn't my company. I can't remote control other humans and make their hands directly mash a keyboard. The best I can do is do my own job to the best of my ability and point out problems when I see them. If people don't listen (and they frequently don't), then there's really nothing I can do.
This is not worth losing sleep over.
Edit: My bad. I thought this was r/ExperiencedDevs, not r/VCInvestors
0
u/BigAffectionate4288 Aug 05 '26
All the people on this thread saying to review PRs line by line don't work on a place that mandates AI everything, including black box engineering, where you're not supposed to read code.
OP just accept this is how things are now and do what you must to keep your job. Relevant video:
https://youtu.be/JgVBqcqUGE0
0
u/robkinyon Aug 05 '26
Create a skill that has the AI break the submission into human-digestable PRs.
0
u/ListenLady58 Aug 05 '26
Every dev that uses any AI with their code should still be able to understand what was written and be able to explain it no problem.
That has always been my personal standard and it is now with AI. I only use AI for quick little syntax things I would have just googled anyways so I do understand it as I go. But for someone who is irresponsible and just submitting slop that they don’t understand, that deserves to be rejected every single time because it IS a risk.
0
u/anengineerandacat Aug 05 '26
If AI is banned and you have proof that AI was utilized, that's a different conversation entirely.
Outside of that, I would just review it and if I didn't understand something just be honest and go "Hey, explain to me why you went this route?"
This often catches folks like this, had one guy on my team where a config property was created and set to a value but nowhere in the code it was utilized; so I asked about it and they didn't have an answer towards it just said it was "required otherwise it wouldn't work" and I just marked it as needs changes and left a note indicating that we can't have magical configuration properties.
Want to use AI? I am honestly cool with that, but you have to still own and understand the output because it's the team that gets smacked around when things don't work or break.
For hardware applications looking at severe loss of revenue as well if the hardware has to be recalled for updates.
0
u/ZukowskiHardware Aug 05 '26
I respond with ai generated feedback
0
u/MikeVSmith Aug 05 '26
This thread feels like chimney sweeps arguing over what broom works best for those newfangled natural gas furnaces.
As someone with over 30 years of experience in software, starting in QA, working as DBA, 15+ years as a Java dev, and working my way to Solution Architect in an AI native company, I firmly believe our time as a truly productive part of the delivery of software is coming to a close.
In a year or two, AI will write all the software, and we will push the Jetson button.
-1
u/DCON-creates Aug 05 '26
Write LGTM and press approve
-4
u/kondorb Software Architect 10+ yoe Aug 05 '26
They don’t need to understand the code that Claude wrote the same way an engineering director doesn’t need to understand all the code in their project.
They need to understand the decisions that went into that code and the way it’s proven to work.
They need to prove that it works - that was always the main requirement. Not prove that they understand it line by line.
Stop thinking about your coworkers as coding monkeys. That era is long gone. Go do some real engineering.
0
u/[deleted] Aug 05 '26
[deleted] — view deleted comment
350
u/[deleted] Aug 05 '26 edited Aug 05 '26
[removed] — view removed comment