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.
• Software and its engineering → Software creation and management; • Software post-development issues → Maintaining software; Software evolution; Software version control.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
它引用的顶会 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 次
- 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 次
- The Effect of Complexity and Provenance on Code Review Decisions: Evidence from a Controlled ExperimentNeha Singh, Francesco Sovrano, Vincent J. Hellendoorn, Alberto BacchelliFSE 2026
