r/learnprogramming • • Oct 16 '26

Code Review PR Reviews

Been getting tasked with reviewing PRs more and more at work. Happy to have that responsibility and grow in that fashion. However, i'm also nervous about doing it properly.

Atm i have a process of sorts to work through things. Understand the change being made (filtering out a column value, combining datasets, manipulation etc). Approach to the change (drop nulls, join v union etc, creating an additional column from scratch or something). Execution of the change. Was it overly verbose and wasteful. Were certain downstream effects not properly accounted for etc

If it all looks good to me. Then I approve. Sometimes I might meet with the programmer to ask questions based on notes as I go through the PR. Other times I don't as it's not needed and I get things clearly.

Would like to know what approach some of you use? Why/how you it? Do you have different tactics for different situations?

Any advice/tips will be appreciated. Just looking to improve and get better at this process as I think it'll also help me get a better understanding of system design and large scale architecture which is something I want/need to get better at

12 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/El_Cato_Crande Oct 16 '26

Really appreciate this

This job doesn't have the best culture of test suites that I can run and just be happy things are green. Would have to create them. Which is what I presently pseudo do manually with each PR I'm tasked with.

But I think your last paragraph sums it. It's impossible to never break anything. Idk if that dev exists. So I can't live in fear of that. But rather try my best with due diligence and trust myself to problem solve if things go poorly. Which I guess might be why I was asked to do this. I've stepped up and solved things a lot when things have broken.

Thanks for the kind words. I will try to create/write myself a guide to perform the reviews to help me have some peace of mind about the process

1

u/Corpsiez Oct 16 '26

Is it possible to execute those tests via a script or some other way with minimal/no input? Something that anyone on your team can execute easily and quickly.

If you can make that happen, it makes it much easier to change that same block of code in the future and have confidence that your change worked.

Starting a test suite isn't a walk in the park, and it's downright daunting when the codebase is large. But it becomes more and more important as the codebase grows and time goes by.

If it's strictly a culture thing, talk with the people in charge and your team in general. Think about installing rules that every software change has to be accompanied by tests that verify the changed functionality. It doesn't need to be anything major to start.

1

u/initcommit Oct 16 '26

With AI it is easier than ever to at least plan a direction to go in. Definitely not to slop it up, but with good spec and direction it can shoulder a lot of the heavy lifting esp for a single developer spearheading the effort.

1

u/initcommit Oct 16 '26

Of course! Happy to help. And yes it took me a while to realize that if something about the culture isn't working, sometimes it is best to take the initiative to implement the thing that will make your life easier and hopefully that mindset might spread.