Unless code is algorithmic in nature, I look at architecture and approach only.
A good post on the topic: https://blog.danlew.net/2021/02/23/stop-nitpicking-in-code-r...
Used to do this on mock-ups of apps I was building. They wouldn’t fuss at the core functionality if they changed something obvious and not important.
Exactly.
The tall nail gets the hammer. The shop that passes all the shitboxes gets the audit.
They don't want that audit and if that audit comes they want the paper trail to make them look like they're hard-asses about everything just like the auditor wants to see so they don't lose their license. The deal is that safety inspections are basically guaranteed work for the shops and exchange they get an incentive to not fudge emissions inspections. I dunno if that's still how they present it but that's what the 3rd party that runs the state training was telling everyone years back and the rules haven't changed since then (other than some more increased reporting requirements that are either to reduce odometer fraud or lay the groundwork for a mileage tax depending on who you ask).
Also, from a teammate perspective, it might be worth pointing it out to the person. "I noticed a bug in the PR that I found later... want to show you why it could be a problem so we don't let it slip next time"
Imo I usually just fire the PR off and message on Slack saying, "this one needs to ship ASAP, anything truly bjork'd here?"
Or if it's going to be critical code, "The blast radius on this one is high. Give it a thorough scan please!"
Communication is key :)
I don't know, that seems kind of confrontational. If I got called out for missing a bug in a review I'd be annoyed
In my opinion, the best way to approach this situation is with "non-violent communication"[0] in mind.
Don't make the conversation about "this is your fault, do better", instead make it about "I noticed a bug in my code that could have broken production and I think we can do better".
It takes trust to pull off conversations like these without coming across as a prick. This type of empathy is particularly important when mentoring others because... People are always going to make mistakes. They create great opportunities to help somebody learn though.
When I am being taught something, I learn much more quickly when somebody points to somewhere I failed versus explaining an "abstract" bad pattern. Maybe having the "abstract" idea first helps. It might make the "failure" easier to stomach later. For me though, those moments of stumbling always stuck as lessons I reflect back on the most.
My attention to detail with code became a lot higher when I was on-call and prod broke at 4am because of a bug I let slip!
0: https://en.wikipedia.org/wiki/Nonviolent_Communication#Four_...
So ignore mistakes in code reviews?
Unit tests are useful, invariant testing in code more useful, but code reviews and user testing are important too, for catching mistakes.