First time in a position reviewing pull requests and finding it difficult.

Posted by PM_ME_CATS_THANKS@reddit | ExperiencedDevs | View on Reddit | 45 comments

Somehow I've ended up spending a lot of my career (10 years) developing things solo and unfortunately lack experience working in a team.

For the past couple of years I've been a contractor on a niche project for a large organisation, almost entirely as the solo dev. Recently we had some more funding come in and a couple more contractors were brought in to work on a particular new feature.

This means it's now down to me to review all pull requests, and I can't tell if I'm doing any of it right.

One issue is that so many of the pull requests are huge changes of (likely AI written) code. A lot of it is not clear at all what is actually going on. Sometimes the pull requests are a couple thousand changes made in just a few days. I do blame myself partly for not laying out and enforcing a better strategy for making smaller pull requests.

I go through it line by line and point out some of the obviously weird stuff (why is AI so obsessed with using the any type and casting things to any that already have a type). But some of it is also just things like endless nested if statements which technically will work but just isn't good to maintain. Sometimes I point out code that is just so bafflingly weird, but it still gets merged by someone else.

The added complexity is also immense and for dubious benefit, but is necessary for the sake of this new feature.

I don't want to keep saying to people "please just make this less of a mess". We're on a deadline and they probably don't have the time to fix it all. I also want to trust that they know what they are doing and not dismiss their work just because I can't follow all of it. In the past I worked at an awful job (when I was still quite new) where basically everything I made was rejected by the person who was in charge of merging pull requests. I don't want to be like that, but somehow I'm starting to learn why they maybe felt that way.

I also realise though that once the other contractors are gone, I'm going to be the one going through the code trying to figure out bugs and making tweaks.

Then again maybe none of it matters any more because I can just hand it over to the AI slop machine? Honestly I use AI pretty minimally in my day to day work, but maybe this is the way now.

Is this relatable to anyone out here? How strict are you about what code gets merged?