paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Towards a Live Environment for Code Refactoring

迈向面向代码重构的实时环境
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 1/10 · 该论文关注代码重构的实时环境与开发者工具,属于软件工程/IDE 工具方向,与用户画像中的 PL 与 AI/LLM 交叉、浮点程序分析、贝叶斯程序分析等核心问题均无直接关联。引用 2 inbox
Sara Fernandes
crossref: 2026-09-12

AI 速览

一句话:提出并原型化实时重构环境,可识别、推荐并应用 Extract Method 重构,改善开发者重构体验。

手动重构代码往往复杂,已有重构工具虽能减轻负担,但多数只在后期提供反馈与建议,难以在编码过程中及时支持开发者。本文提出 Live Refactoring 概念,认为持续、即时地向代码建议重构候选有助于缓解该问题。作者原型实现了一个实时重构环境,能够识别、推荐并应用 Extract Method 重构。通过一项实证实验评估该方法对开发者重构过程和代码质量的影响,结果表明该环境帮助开发者获得更高质量代码,并改善了其重构体验。

问题
手动重构复杂,且现有重构工具大多反馈滞后,无法在开发者编码时提供及时建议与支持。
方法
提出 Live Refactoring 概念,并原型实现实时重构环境,用于识别、推荐和应用 Extract Method 重构。
评估
通过实证实验考察该环境对开发者重构结果与体验的影响,发现其有助于产出更高质量代码并改善重构体验。
原文摘要(Abstract)

Refactoring code manually can be complex. Several refactoring tools were developed to mitigate the effort needed to create more readable, adaptable, and maintainable code. However, most of them continue to provide late feedback, assistance, and support on how developers should improve their software. That’s where the concept of Live Refactoring comes in. We believe the immediate and continuous suggestion of refactoring candidates to the code will help reduce this problem. Therefore, we prototyped a Live Refactoring Environment that identifies, recommends, and applies Extract Method refactorings. We carried out an empirical experiment that showed us that our approach helped developers reach better code, with more quality, improving their refactoring experience.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7338,
  title = {Towards a Live Environment for Code Refactoring},
  author = {Sara Fernandes},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3559569}
}