Primers or reminders?: the effects of existing review comments on code review
Davide Spadini, Gül Çalikli, Alberto Bacchelli
Abstract
In contemporary code review, the comments put by reviewers on a specific code change are immediately visible to the other reviewers involved. Could this visibility prime new reviewers' attention (due to the human's proneness to availability bias), thus biasing the code review outcome? In this study, we investigate this topic by conducting a controlled experiment with 85 developers who perform a code review and a psychological experiment. With the psychological experiment, we find that ≈70% of participants are prone to availability bias. However, when it comes to the code review, our experiment results show that participants are primed only when the existing code review comment is about a type of bug that is not normally considered; when this comment is visible, participants are more likely to find another occurrence of this type of bug. Moreover, this priming effect does not influence reviewers' likelihood of detecting other types of bugs. Our findings suggest that the current code review practice is effective because existing review comments about bugs in code changes are not negative primers, rather positive reminders for bugs that would otherwise be overlooked during code review. Data and materials: https://doi.org/10.5281/zenodo.3653856
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c5b50617-b1b0-4680-a6be-d5e377aa53a1Cited by top-tier papers7
- AUGER: automatically generating review comments with pre-training modelsLingwei Li, Li Yang, Huaxi Jiang, Jun Yan et al.FSE 2022 · 56 citations
- Less is More: Supporting Developers in Vulnerability Detection during Code ReviewLarissa Braz, Christian Aeberhard, Gül Çalikli, Alberto BacchelliICSE 2022 · 26 citations
- First come first served: the impact of file position on code reviewEnrico Fregnan, Larissa Braz, Marco D'Ambros, Gül Çalikli et al.FSE 2022 · 16 citations
- Do you really code? Designing and Evaluating Screening Questions for Online Surveys with ProgrammersAnastasia Danilova, Alena Naiakshina, Stefan Horstmann, Matthew SmithICSE 2021 · 5 citations
- Why Don't Developers Detect Improper Input Validation? '; DROP TABLE Papers; -Larissa Braz, Enrico Fregnan, Gül Çalikli, Alberto BacchelliICSE 2021 · 1 citation
Related papers
- Mitigating the Risk of Defects and Improving Knowledge Distribution with Code Reviewer RecommendersMohammadali Sefidi Esfahani, Peter C. RigbyFSE 2026
- Why Security Defects Go Unnoticed during Code Reviews? A Case-Control Study of the Chromium OS ProjectRajshakhar Paul, Asif Kamal Turzo, Amiangshu BosuICSE 2021 · 2 citations
- The Effect of Complexity and Provenance on Code Review Decisions: Evidence from a Controlled ExperimentNeha Singh, Francesco Sovrano, Vincent J. Hellendoorn, Alberto BacchelliFSE 2026
- CommentFinder: a simpler, faster, more accurate code review comments recommendationYang Hong, Chakkrit Tantithamthavorn, Patanamon Thongtanunam, Aldeida AletiFSE 2022 · 57 citations
- Interpersonal Conflicts During Code Review: Developers' Experience and PracticesPavlína Wurzel Gonçalves, Gül Çalikli, Alberto BacchelliCSCW 2022 · 11 citations
