Published January 2, 2019 | Version v1
Journal article Open

Associating Working Memory Capacity and Code Change Ordering with Code Review Performance

  • 1. Leibniz Universität Hannover
  • 2. University of Zurich

Description

Change-based code review is a software quality assurance technique that is widely used in practice. Therefore, better understanding what influences performance in code review and finding ways to improve it can have a large impact. In this study, we examine the association of working memory capacity and cognitive load to code review performance and we test the predictions of a recent theory regarding improved code review efficiency with certain code change part orders. We perform a confirmatory experiment with 50 participants, mostly professional software developers. The participants performed code reviews on one small and two larger code changes from an open source software system to which we had seeded additional defects. We measured their efficiency and effectiveness in defect detection, their working memory capacity, and several potential confounding factors. We find that there is a moderate association between working memory capacity and the effectiveness of finding delocalized defects, influenced by other factors, whereas the association with other defect types is almost non-existing. We also confirm that the effectiveness of reviews is significantly larger for small code changes. We observe a tendency that the order of presenting the code changes influences the efficiency of code review, but cannot conclude this reliably.

Notes

This is a pre-print of an article published in Empirical Software Engineering. The final authenticated version is available online at: https://doi.org/10.1007/s10664-018-9676-8

Files

article.pdf

Files (621.9 kB)

Name Size Download all
md5:78801460d02a908738d6eb408d1b5a51
621.9 kB Preview Download

Additional details

Related works

Is identical to
10.1007/s10664-018-9676-8 (DOI)
Is supplemented by
10.6084/m9.figshare.5808609 (DOI)

Funding

Data-driven Contemporary Code Review PP00P2_170529
Swiss National Science Foundation