Cargando…
The effects of change decomposition on code review—a controlled experiment
BACKGROUND: Code review is a cognitively demanding and time-consuming process. Previous qualitative studies hinted at how decomposing change sets into multiple yet internally coherent ones would improve the reviewing process. So far, literature provided no quantitative analysis of this hypothesis. A...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
PeerJ Inc.
2019
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7924728/ https://www.ncbi.nlm.nih.gov/pubmed/33816846 http://dx.doi.org/10.7717/peerj-cs.193 |
_version_ | 1783659150840954880 |
---|---|
author | di Biase, Marco Bruntink, Magiel van Deursen, Arie Bacchelli, Alberto |
author_facet | di Biase, Marco Bruntink, Magiel van Deursen, Arie Bacchelli, Alberto |
author_sort | di Biase, Marco |
collection | PubMed |
description | BACKGROUND: Code review is a cognitively demanding and time-consuming process. Previous qualitative studies hinted at how decomposing change sets into multiple yet internally coherent ones would improve the reviewing process. So far, literature provided no quantitative analysis of this hypothesis. AIMS: (1) Quantitatively measure the effects of change decomposition on the outcome of code review (in terms of number of found defects, wrongly reported issues, suggested improvements, time, and understanding); (2) Qualitatively analyze how subjects approach the review and navigate the code, building knowledge and addressing existing issues, in large vs. decomposed changes. METHOD: Controlled experiment using the pull-based development model involving 28 software developers among professionals and graduate students. RESULTS: Change decomposition leads to fewer wrongly reported issues, influences how subjects approach and conduct the review activity (by increasing context-seeking), yet impacts neither understanding the change rationale nor the number of found defects. CONCLUSIONS: Change decomposition reduces the noise for subsequent data analyses but also significantly supports the tasks of the developers in charge of reviewing the changes. As such, commits belonging to different concepts should be separated, adopting this as a best practice in software engineering. |
format | Online Article Text |
id | pubmed-7924728 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2019 |
publisher | PeerJ Inc. |
record_format | MEDLINE/PubMed |
spelling | pubmed-79247282021-04-02 The effects of change decomposition on code review—a controlled experiment di Biase, Marco Bruntink, Magiel van Deursen, Arie Bacchelli, Alberto PeerJ Comput Sci Human-Computer Interaction BACKGROUND: Code review is a cognitively demanding and time-consuming process. Previous qualitative studies hinted at how decomposing change sets into multiple yet internally coherent ones would improve the reviewing process. So far, literature provided no quantitative analysis of this hypothesis. AIMS: (1) Quantitatively measure the effects of change decomposition on the outcome of code review (in terms of number of found defects, wrongly reported issues, suggested improvements, time, and understanding); (2) Qualitatively analyze how subjects approach the review and navigate the code, building knowledge and addressing existing issues, in large vs. decomposed changes. METHOD: Controlled experiment using the pull-based development model involving 28 software developers among professionals and graduate students. RESULTS: Change decomposition leads to fewer wrongly reported issues, influences how subjects approach and conduct the review activity (by increasing context-seeking), yet impacts neither understanding the change rationale nor the number of found defects. CONCLUSIONS: Change decomposition reduces the noise for subsequent data analyses but also significantly supports the tasks of the developers in charge of reviewing the changes. As such, commits belonging to different concepts should be separated, adopting this as a best practice in software engineering. PeerJ Inc. 2019-05-13 /pmc/articles/PMC7924728/ /pubmed/33816846 http://dx.doi.org/10.7717/peerj-cs.193 Text en © 2019 di Biase et al. http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited. |
spellingShingle | Human-Computer Interaction di Biase, Marco Bruntink, Magiel van Deursen, Arie Bacchelli, Alberto The effects of change decomposition on code review—a controlled experiment |
title | The effects of change decomposition on code review—a controlled experiment |
title_full | The effects of change decomposition on code review—a controlled experiment |
title_fullStr | The effects of change decomposition on code review—a controlled experiment |
title_full_unstemmed | The effects of change decomposition on code review—a controlled experiment |
title_short | The effects of change decomposition on code review—a controlled experiment |
title_sort | effects of change decomposition on code review—a controlled experiment |
topic | Human-Computer Interaction |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7924728/ https://www.ncbi.nlm.nih.gov/pubmed/33816846 http://dx.doi.org/10.7717/peerj-cs.193 |
work_keys_str_mv | AT dibiasemarco theeffectsofchangedecompositiononcodereviewacontrolledexperiment AT bruntinkmagiel theeffectsofchangedecompositiononcodereviewacontrolledexperiment AT vandeursenarie theeffectsofchangedecompositiononcodereviewacontrolledexperiment AT bacchellialberto theeffectsofchangedecompositiononcodereviewacontrolledexperiment AT dibiasemarco effectsofchangedecompositiononcodereviewacontrolledexperiment AT bruntinkmagiel effectsofchangedecompositiononcodereviewacontrolledexperiment AT vandeursenarie effectsofchangedecompositiononcodereviewacontrolledexperiment AT bacchellialberto effectsofchangedecompositiononcodereviewacontrolledexperiment |