Reviewing someone else’s AI slop

Posted by ComebacKids@reddit | ExperiencedDevs | View on Reddit | 249 comments

Someone on my team will publish a PR, it’s like 1-2k lines of code and after looking at it for 5 minutes I can tell it’s pretty much entirely AI generated.

I don’t inherently have anything against AI code, but what irks me is it’s full of really obvious issues. For example there’s lots of repetitive code in several places that could be moved to a single function.

This is something I’d expect a junior to spot/fix and this person has like 4+ YoE so they should definitely know better. So they’re either not reviewing their AI generated code whatsoever or they’re a much worse engineer than I thought.

Anyone dealt with something similar? Trying to figure out how to navigate this without causing the person to mentally check out due to me confronting them.