Skip to main navigation Skip to search Skip to main content

Confusion in Code Reviews: Reasons, Impacts, and Coping Strategies

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › Academic › peer-review

Abstract

Code review is a software quality assurance practice widely employed in both open source and commercial software projects to detect defects, transfer knowledge and encourage adherence to coding standards. Notwithstanding, code reviews can also delay the incorporation of a code change into a code base, thus slowing down the overall development process. Part of this delay is often a consequence of reviewers not understanding, becoming confused by, or being uncertain about the intention, behavior, or effect of a code change.We investigate the reasons and impacts of confusion in code reviews, as well as the strategies developers adopt to cope with confusion. We employ a concurrent triangulation strategy to combine the analyses of survey responses and of the code review comments, and build a comprehensive confusion framework structured along the dimensions of the review process, the artifact being reviewed, the developers themselves and the relation between the developer and the artifact. The most frequent reasons for confusion are the missing rationale, discussion of non-functional requirements of the solution, and lack of familiarity with existing code. Developers report that confusion delays the merge decision, decreases review quality, and results in additional discussions. To cope with confusion developers request information, improve familiarity with existing code, and discuss off-line. Based on the results, we provide a series of implications for tool builders, as well as insights and suggestions for researchers. The results of our work offer empirical justification for the need to improve code review tools to support developers facing confusion.

Original languageEnglish
Title of host publication2019 IEEE 26th International Conference on Software Analysis, Evolution and Reengineering (SANER)
EditorsXinyu Wang, David Lo, Emad Shihab
Place of PublicationPiscataway, NJ
PublisherIEEE
Pages49-60
Number of pages12
ISBN (Electronic)978-1-7281-0591-8
ISBN (Print)978-1-7281-0592-5
DOIs
Publication statusPublished - 18 Mar 2019
Externally publishedYes
Event26th IEEE International Conference on Software Analysis, Evolution, and Reengineering, SANER 2019 - Dragon Hotel, Hangzhou, China
Duration: 24 Feb 2019 → 27 Feb 2019
Conference number: 26
https://saner2019.github.io/

Publication series

NameIEEE International Conference on Software Analysis, Evolution and Reengineering (SANER)
PublisherIEEE
Volume2019
ISSN (Print)1534-5351

Conference

Conference26th IEEE International Conference on Software Analysis, Evolution, and Reengineering, SANER 2019
Abbreviated titleSANER 2019
Country/TerritoryChina
CityHangzhou
Period24/02/19 → 27/02/19
Internet address

Keywords

  • n/a OA procedure
  • code review
  • confusion
  • survey
  • cards sorting

Fingerprint

Dive into the research topics of 'Confusion in Code Reviews: Reasons, Impacts, and Coping Strategies'. Together they form a unique fingerprint.

Cite this