Lune

FSE2022顶会

First come first served: the impact of file position on code review

Enrico Fregnan, Larissa Braz, Marco D'Ambros, Gül Çalikli, Alberto Bacchelli

摘要

The most popular code review tools (e.g., Gerrit and GitHub) present the files to review sorted in alphabetical order. Could this choice or, more generally, the relative position in which a file is presented bias the outcome of code reviews? We investigate this hypothesis by triangulating complementary evidence in a two-step study. First, we observe developers’ code review activity. We analyze the review comments pertaining to 219,476 Pull Requests (PRs) from 138 popular Java projects on GitHub. We found files shown earlier in a PR to receive more comments than files shown later, also when controlling for possible confounding factors: e.g., the presence of discussion threads or the lines added in a file. Second, we measure the impact of file position on defect finding in code review. Recruit- ing 106 participants, we conduct an online controlled experiment in which we measure participants’ performance in detecting two unrelated defects seeded into two different files. Participants are assigned to one of two treatments in which the position of the defective files is switched. For one type of defect, participants are not affected by its file’s position; for the other, they have 64% lower odds to identify it when its file is last as opposed to first. Overall, our findings provide evidence that the relative position in which files are presented has an impact on code reviews’ outcome; we discuss these results and implications for tool design and code review.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Why Don't Developers Detect Improper Input Validation? '; DROP TABLE Papers; - 引用了 Primers or reminders?: the effects of existing review comments on code review
  • Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword? 引用了 Primers or reminders?: the effects of existing review comments on code review
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Can GPT-4 Replicate Empirical Software Engineering Research?Jenny T. Liang, Carmen Badea, Christian Bird, Robert DeLine 等FSE 2024 · 15 次引用
  2. Barriers for Students During Code Change ComprehensionJustin Middleton, John-Paul Ore, Kathryn T. StoleeICSE 2024 · 7 次引用
  3. An Empirical Study on Code Review Activity Prediction and Its Impact in PracticeDoriane Olewicki, Sarra Habchi, Bram AdamsFSE 2024 · 2 次引用
  4. Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword?Rosalia Tufano, Alberto Martin-Lopez, Ahmad Tayeb, Ozren Dabic 等ICSE 2025 · 1 次引用
  5. A Bug's Life: Analyzing the Lifecycle and Mitigation Process of Content Security Policy BugsGertjan Franken, Tom van Goethem, Lieven Desmet, Wouter JoosenUSENIX Security 2023

它引用的 Paper4

  1. Biases and differences in code review using medical imaging and eye-tracking: genders, humans, and machinesYu Huang, Kevin Leach, Zohreh Sharafi, Nicholas McKay 等FSE 2020 · 37 次引用
  2. A tale from the trenches: cognitive biases and software developmentSouti Chattopadhyay, Nicholas Nelson, Audrey Au, Natalia Morales 等ICSE 2020 · 23 次引用
  3. Primers or reminders?: the effects of existing review comments on code reviewDavide Spadini, Gül Çalikli, Alberto BacchelliICSE 2020 · 13 次引用
  4. Why Don't Developers Detect Improper Input Validation? '; DROP TABLE Papers; -Larissa Braz, Enrico Fregnan, Gül Çalikli, Alberto BacchelliICSE 2021 · 1 次引用

相关 Paper

  1. Breaking the Alphabet: Rethinking File Ordering in Code ReviewMd Shamimur Rahman, Zadia Codabux, Chanchal K. RoyICSE 2026
  2. Opportunities and Challenges in Repeated Revisions to Pull-Requests: An Empirical StudyZhixing Li, Yue Yu, Tao Wang, Shanshan Li 等CSCW 2022 · 11 次引用
  3. Understanding the impact of GitHub suggested changes on recommendations between developersChris Brown, Chris ParninFSE 2020 · 18 次引用
  4. The Effectiveness of Security Interventions on GitHubFelix Fischer, Jonas Höbenreich, Jens GrossklagsCCS 2023 · 4 次引用
  5. CORMS: a GitHub and Gerrit based hybrid code reviewer recommendation approach for modern code reviewPrahar Pandya, Saurabh TiwariFSE 2022 · 21 次引用
黄昏的海面,两侧是细线勾勒的悬崖