Breaking the Alphabet: Rethinking File Ordering in Code Review
Md Shamimur Rahman, Zadia Codabux, Chanchal K. Roy
摘要
Effective code review is central to maintaining software quality, yet there is limited research about how the ordering of changed files in Pull Requests (PRs) influences review effectiveness. Most popular code review tools default to alphabetical ordering, favoring predictability over contextual relevance. While prior studies examined how file position shapes reviewer attention, it remains unclear how such ordering influences cognitive load and perceived review thoroughness. This study presents the first large-scale survey of 1,355 professional developers across 182 widely used open-source projects to investigate how file ordering impacts review behavior, comprehension, and perceived effectiveness. Our mixed-methods analysis reveals that only 10.2% of reviewers consider alphabetical ordering optimal, underscoring a cognitive misalignment in their interpretation of code changes. Although some developers appreciate its predictability, more than half (57.6%) report that it increases context switching, disrupts logical reasoning, and contributes to review fatigue, and 63.9% expressed concern that the default ordering may cause them to miss bugs. We further identify key challenges in multi-file reviews and elicit developers' expectations for improved tooling, including dependency-aware grouping and customizable file ordering (requested by 66% of reviewers). These findings highlight the need for reviewer-centric interface designs that better align tool behavior with human cognition.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- First come first served: the impact of file position on code review 引用了 Biases and differences in code review using medical imaging and eye-tracking: genders, humans, and machines
- First come first served: the impact of file position on code review 引用了 A tale from the trenches: cognitive biases and software development
- First come first served: the impact of file position on code review 引用了 Primers or reminders?: the effects of existing review comments on code review
- An Empirical Study on Code Review Activity Prediction and Its Impact in Practice 引用了 First come first served: the impact of file position on code review
它引用的 Paper5
- 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 次引用
- A tale from the trenches: cognitive biases and software developmentSouti Chattopadhyay, Nicholas Nelson, Audrey Au, Natalia Morales 等ICSE 2020 · 23 次引用
- First come first served: the impact of file position on code reviewEnrico Fregnan, Larissa Braz, Marco D'Ambros, Gül Çalikli 等FSE 2022 · 16 次引用
- Primers or reminders?: the effects of existing review comments on code reviewDavide Spadini, Gül Çalikli, Alberto BacchelliICSE 2020 · 13 次引用
- An Empirical Study on Code Review Activity Prediction and Its Impact in PracticeDoriane Olewicki, Sarra Habchi, Bram AdamsFSE 2024 · 2 次引用
相关 Paper
- Opportunities and Challenges in Repeated Revisions to Pull-Requests: An Empirical StudyZhixing Li, Yue Yu, Tao Wang, Shanshan Li 等CSCW 2022 · 11 次引用
- Barriers for Students During Code Change ComprehensionJustin Middleton, John-Paul Ore, Kathryn T. StoleeICSE 2024 · 7 次引用
- "@alex, this fixes #9": Analysis of Referencing Patterns in Pull Request DiscussionsAshish Chopra, Morgan Mo, Samuel Dodson, Ivan Beschastnikh 等CSCW 2021 · 13 次引用
- Modeling Review History for Reviewer Recommendation: A Hypergraph ApproachGuoping Rong, Yifan Zhang, Lanxin Yang, Fuli Zhang 等ICSE 2022 · 20 次引用
- SmartCommit: a graph-based interactive assistant for activity-oriented commitsBo Shen, Wei Zhang, Christian Kästner, Haiyan Zhao 等FSE 2021 · 20 次引用
