90% of a code review is not about finding THE BUG in the PR but asking questions and making the author find his own bugs or learning something from him.
If you are performing a code review hunting for bugs you already lost your humility and think you are better then the PR author.
AnimalMuppet|4 years ago
Code can be like that, too. You write code, and it's enough to convince you that it does what you think it does. But someone else reading it can sometimes see the holes that you don't see.
Assuming that person X writes bug-free code is bad, whether X is "you", "me", or "that co-worker".
I don't have to be better than the PR author. I just have to be decently good, and be a different person. That's enough.
And of course I'm looking for bugs. That's the absolute first thing to look for!
Now, true, if I can help the author be able to see their own bugs (asking questions, maybe), then that's probably better than me just lecturing them. Teach them how to think so that they can see it themselves next time.
neo2006|4 years ago