How do you give real code review feedback without sounding bossy?

Posted by Ill_Captain_8031@reddit | ExperiencedDevs | View on Reddit | 165 comments

Lately l've been trying to level up my code review game. But wow, giving thoughtful, constructive feedback without sounding like I'm nitpicking or lecturing?

Backstory: junior dev on our team pushed a PR for a new service. Logic worked, but it had like... zero error handling and was missing some tracing. I thought for 20 minutes before finally writing something like:

“This works! One thing to maybe consider: what would happen if this call fails mid-request? Wondering if wrapping it in a retry + logging block might help.”

She replied:

“Oh no good catch, thanks!”

All good, but I still spiraled after. Am I being too nice and vague? Too nitpicky? Should I just rewrite the comment in code and push a suggestion?

So how do y'all give feedback that points out real risks / missing stuff, especially in production code, without sounding like you've got a god complex?

Bonus points if you've got templates, one-liners, or "feedback sandwich" tricks.