4 ms·
Sorry, are you saying that it's possible that code reviews cause more bugs than they solve? That's absurd...
by yupper32 5y ago
Sorry, are you saying that it's possible that code reviews cause more bugs than they solve?
That's absurd...
- Abroszka 5y agoWhy would it be absurd? If there is a process to reduce risks, then people take more risks. I have been guilty of submitting code review when I'm not 100% sure it's perfect, just because I know that there is a code review process. So this definitely exists, not sure how common it is though.
- deckard1 5y agoAlso, the trick to code reviews is to leave in a few low-hanging obvious bike sheds. The reviewers will tell you what color to paint them. Done. I'm being slightly sarcastic. But not sarcastic to the point that I haven't done just that. Just as the nail that sticks out gets hammered, the code that is too perfect gets increased scrutiny.
- aflag 5y agoIt depends on the team’s culture. Where I work most of the code reviews have 0 comments
- Verdex 5y agoPerhaps unlikely. Or really surprising. But not absurd. Imagine some reviewer who rejects all code reviews that don't have some recognizable pattern in them from the gang of four book. Fully complete and working code gets hacked up last minute to accommodate this person who has more seniority than sense. Or ... maybe someone who always want there to be a single return in every function. Or heck, someone who demands that you always do early return. Either way they demand that some carefully crafted code is swapped over to the equivalent dual. And during that transformation a mistake is make that nobody notices. I think the point is that the science way to indicate that code reviews work is to actually do the experiment. Instead of just saying, "why that's absurd that a code review could cause more defects." I mean isn't that how hand washing got introduced into medicine? "Hey everyone, let's try washing our hands!" "Why, the hands of a gentleman are always clean. It's absurd to suggest that we should wash our hands."
- adinisom 5y agoI've seen it happen. I was on a team of competent people working on a dense code base before and after introduction of gatekeeping code reviews. The code base was large so no two people would be working in the same area. Before code reviews: - Team members working on a section of code would find and fix bugs in it. - Team members would watch the repository history to monitor for any mistakes. When gatekeeping reviews were introduced, they were not particularly effective at finding bugs because bugs tended to be subtle and required time working on the particular code in question to identify. But the introduction of gatekeeping code review caused bugs because: - Once reviewed, code was assumed to be good enough because hey, two people agreed on it. - Any bugs identified would require code reviews to fix which would be an uphill battle and probably involve project management. - Nobody's looking that closely at history because who wants to deal with finding problems and pushing through fixes? And hey, it's already reviewed. - Knowledge of code that is being reviewed becomes stale as you start working on other features. This impacts pre-commit testing as you make changes to mollify the reviewer, and thus lead to a bug. - Lowering velocity lowers the rate of fixing bugs. - A bug could be fixed but stuck in review, so it's still in the codebase for other developers to run across. You could argue: well, it's documented in JIRA! But bugs can manifest in different ways and affect multiple system.