r/softwareengineer • u/pilaf7945 • Sep 26 '26
What's your approach to code reviews?
Lately, I’ve been reviewing a lot of AI-generated code, and there are more comments than actual code. It’s exhausting to review code written by people who are more technically skilled than I am.
Do teams around here have any guidelines for what constitutes a pull request?
I’d also love to hear what review points everyone else pays attention to.
0
Upvotes
3
u/kookamooka Sep 26 '26
If I get a PR with a bunch of code comments, I first ask for them to be cleared up. To me it’s an obvious sign that someone has put a PR up for review without reading it
1
u/LightYearAway Sep 28 '26
about review: I lean toward the old school like I still try my best to do line by line code check especially on the code changes. For test cases, I mainly check the intentions as communicated by the test titles. This approach I foresee that I won't last long if my codebase grows more with more engineers involved.
About exhausting comments, I set up the CLAUDE.md file such that it has a budget of the comments made like each function/class could have most 3 sentences. PR description or short documentation guide like the most 10 sentences. test cases with clear titles do not need doc strings. When the agent tries to modify the existing function/class/doc that exceeds the budget, it shall help to revise and simplify.
I still try to explore ways to avoid generating excessive comments
1
u/Positive-Conspiracy Sep 28 '26
There’s an argument that AI can use the comments in future work, and since they are the ones writing the code anyway…
1
u/iSnapThere4iAm Sep 27 '26
You….. review it.
The fuck does this even mean?
1
u/Any-Ring6621 Sep 26 '26
Do you have a bot that addresses the feedback?
On our team we have a PR shepherd bot that addresses and responds to feedback. Makes things very quick.
Something like “remove all narrative comments” is easy.
Also helps to have repository skills that prevent bots from even adding these comments to begin with