arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.10978cs.SE
收藏

变更分解对代码评审的影响--一个对照实验

The effects of change decomposition on code review -- a controlled experiment

Marco di Biase, Magiel Bruntink, Arie van Deursen, Alberto Bacchelli

摘要:

背景:代码审查是一个认知要求高且耗时的过程。以前的定性研究暗示了如何将变更集分解为多个内部一致的变更集,以改进审查过程。到目前为止,文献没有提供定量分析这一假设。目的:(1)量化测量变更分解对代码评审结果的影响(根据发现的缺陷数量,错误报告的问题,建议的改进,时间和理解);(2)定性分析主体如何进行评审和导航代码,构建知识和解决现有问题,在大的和分解的变更中。方法:采用拉式开发模式,对28名软件开发专业人员和研究生进行对照实验。结果如下:变更分解导致更少的错误报告问题,影响受试者如何处理和进行评审活动(通过增加上下文搜索),但既不影响对变更原理的理解,也不影响发现缺陷的数量。结论:变更分解减少了后续数据分析的干扰,但也显著支持了负责审查变更的开发人员的任务。因此,属于不同概念的提交应该分开,并将其作为软件工程中的最佳实践。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑