论文标题

关于处理问题中重构文档的探索性研究

An Exploratory Study on Refactoring Documentation in Issues Handling

论文作者

AlOmar, Eman Abdullah, Peruma, Anthony, Mkaouer, Mohamed Wiem, Newman, Christian D., Ouni, Ali

论文摘要

了解重构文档的实践在学术界和行业中至关重要。大多数软件项目都使用问题跟踪系统,使开发人员,质量保证,经理和用户可以提交功能请求以及其他任务,例如错误修复和代码审核。尽管最近的研究探讨了如何记录在提交消息中的重构,但关于开发人员如何描述他们在问题中的重构需求的知之甚少。在这项研究中,我们旨在探索开发人员报告的问题的重构变化,以更好地了解开发人员认为在其代码中存在问题以及如何处理问题。我们的方法依赖于文本挖掘45,477个与重构相关的问题,并通过调查与15,833个重构操作和开发商的显式重构意图相关的问题,从而从77个Java项目组成的各种语料库中确定重构模式。我们的结果表明,(1)开发人员主要使用重构相关术语/短语来针对与重构相关的问题; (2)开发人员倾向于明确提及改进特定质量属性,并专注于重复的代码删除。我们设想我们的发现使工具构建者能够通过自动化问题的自动文档来支持开发人员。

Understanding the practice of refactoring documentation is of paramount importance in academia and industry. Issue tracking systems are used by most software projects enabling developers, quality assurance, managers, and users to submit feature requests and other tasks such as bug fixing and code review. Although recent studies explored how to document refactoring in commit messages, little is known about how developers describe their refactoring needs in issues. In this study, we aim at exploring developer-reported refactoring changes in issues to better understand what developers consider to be problematic in their code and how they handle it. Our approach relies on text mining 45,477 refactoring-related issues and identifying refactoring patterns from a diverse corpus of 77 Java projects by investigating issues associated with 15,833 refactoring operations and developers' explicit refactoring intention. Our results show that (1) developers mostly use move refactoring related terms/phrases to target refactoring-related issues; and (2) developers tend to explicitly mention the improvement of specific quality attributes and focus on duplicate code removal. We envision our findings enabling tool builders to support developers with automated documentation of refactoring changes in issues.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源