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

重构采用现状:更好地理解开发者对重构的认知

State of Refactoring Adoption: Better Understanding Developer Perception of Refactoring

Eman Abdullah AlOmar

AI总结:

本研究提出自我确认重构(SAR)概念与分类识别方法,结合评审调查和工业案例,揭示重构评审难点,给出文档化流程建议,为重构相关研究与实践提供支持。

摘要:

我们旨在探究开发者在软件生命周期中如何记录其重构活动。我们将这类活动称为自我确认重构(Self-Affirmed Refactoring,SAR),它指的是开发者对自身重构活动的记录。SAR对于理解重构的多个方面至关重要,包括所执行代码变更的动机、过程和后果。随后,我们提出了一种方法,用于识别一次提交是否描述了与开发者相关的重构事件,并根据重构常见的质量改进类别对其进行分类。为完善这一目标,我们旨在揭示评审者如何决定接受或拒绝提交的重构请求,以及是什么让这类评审具有挑战性的相关洞见。我们的SAR分类体系和模型可与重构检测器协同工作,报告重构类型与其文档之间的早期不一致性,它们可以为各类实证研究提供坚实的基础。我们针对代码评审者的调查揭示了若干与理解重构意图及其对软件功能和非功能方面的影响相关的困难。基于我们从工业案例研究中获得的发现,作为调查反馈的一部分,我们提出了一套合理记录重构活动的流程。

英文摘要:

We aim to explore how developers document their refactoring activities during the software life cycle. We call such activity Self-Affirmed Refactoring (SAR), which indicates developers' documentation of their refactoring activities. SAR is crucial in understanding various aspects of refactoring, including the motivation, procedure, and consequences of the performed code change. After that, we propose an approach to identify whether a commit describes developer-related refactoring events to classify them according to the refactoring common quality improvement categories. To complement this goal, we aim to reveal insights into how reviewers decide to accept or reject a submitted refactoring request and what makes such a review challenging.Our SAR taxonomy and model can work with refactoring detectors to report any early inconsistency between refactoring types and their documentation. They can serve as a solid background for various empirical investigations. Our survey with code reviewers has revealed several difficulties related to understanding the refactoring intent and implications on the functional and non-functional aspects of the software. In light of our findings from the industrial case study, we recommended a procedure to properly document refactoring activities, as part of our survey feedback.

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

↑