Evaluating Atoms of Confusion in the Context of Code Reviews

Victoria Bogachenkova*, Linh Nguyen*, Felipe Ebert, Alexander Serebrenik*, Fernando Castor

*Corresponding author for this work

    Research output: Contribution to conferencePaperAcademic

    Abstract

    Code review is a popular software engineering practice. Success of code reviews can be threatened by confusion experienced by code reviewers. For instance, on the one hand, research has studied the reasons for confusion in code reviews, and on the other hand, it also has analyzed source code patterns, so called "atoms of confusion", that have been shown to lead to misunderstanding in the lab setting. However, to the best of our knowledge, there is no research which tried to investigate the possible cause and effect relationship between atoms of confusion and confusion in code reviews. Another important aspect still not studied is how those atoms of confusion evolve across pull requests. In this emerging results paper, we report an exploratory case study to provide a deeper understanding of atoms of confusion, more specifically, whether atoms of confusion are related to confusion in code reviews and how they persist across pull requests. With the help of an existing tool for the detection of atoms of confusion, and a manual analysis of code reviews comments, we observed that statistical analysis did not show any relationship between atoms of confusion and presence of confusion comments in code reviews. Additionally, we found evidence that atoms of confusion are mostly not being removed in pull requests. Based on the results, we formulate hypotheses on atoms of confusion in the code review context, that should be confirmed or rejected by future studies.
    Original languageEnglish
    Pages404-408
    Number of pages5
    DOIs
    Publication statusPublished - 2022
    Event39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2022 - Limassol, Cyprus
    Duration: 2 Oct 20227 Oct 2022

    Conference

    Conference39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2022
    Country/TerritoryCyprus
    CityLimassol
    Period2/10/227/10/22

    Bibliographical note

    Funding Information:
    We are very grateful to Mauricio Aniche, Jorge Romeu and Pavlos Makridis for their great work on the topic of atoms of confusion and also for developing and making the tool for detecting atoms of confusion available to us.

    Publisher Copyright:
    © 2022 IEEE.

    Keywords

    • atoms of confusion
    • code reviews
    • confusion
    • pull requests

    Fingerprint

    Dive into the research topics of 'Evaluating Atoms of Confusion in the Context of Code Reviews'. Together they form a unique fingerprint.

    Cite this