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

提取方法重构实时环境的实证评估

Empirical Evaluation of a Live Environment for Extract Method Refactoring

Sara Fernandes, Ademar Aguiar, André Restivo

AI总结:

针对传统重构工具反馈慢的问题,提出聚焦实时可视化建议与应用的实时重构概念,开发可识别、推荐并应用提取方法重构的实时环境,实证实验显示其能改进多项代码质量指标,效果显著优于无辅助手动重构。

摘要:

复杂软件可能难以阅读、适配和维护。对其进行重构可生成更清晰、自解释的代码。重构工具试图引导开发者编写质量更高的优质代码,但大多数工具在提供反馈、支持以及开发者应如何改进软件的指导方面耗时过长。为缓解这一问题,我们探索了实时重构(Live Refactoring)概念,聚焦于实时可视化地建议并应用重构。基于此,我们开发了一个实时重构环境,可可视化识别、推荐并应用提取方法(Extract Method)重构。为验证该环境,我们开展了一项实证实验。初步结果显示,我们的方法改进了多项代码质量指标。此外我们还得出结论:与无额外辅助的手动代码重构结果相比,我们的结果存在显著差异且更优。

英文摘要:

Complex software can be hard to read, adapt, and maintain. Refactoring it can create cleaner and self-explanatory code. Refactoring tools try to guide developers towards better code, with more quality. However, most of them take too long to provide feedback, support, and guidance on how developers should improve their software. To reduce this problem, we explored the concept of Live Refactoring, focusing on visually suggesting and applying refactorings, in real-time. With this in mind, we developed a Live Refactoring Environment that visually identifies, recommends, and applies Extract Method refactorings. To validate it, we conducted an empirical experiment. Early results showed that our approach improved several code quality metrics. Besides, we also concluded that our results were significantly different and better than the ones from refactoring the code manually without further help.

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

↑