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

身份链:身份词多次更名的发生及其特征

Rename Chains: An Exploratory Study on the Occurrence and Characteristics of Identifiers Undergoing Multiple Renamings

Anthony Peruma, Christian D. Newman

摘要:

标识符名称在程序理解活动中起着重要作用,高质量的名称可以提高开发人员的生产力和系统质量。为了纠正质量差的名称,开发人员重命名标识符以更好地反映其预期用途。然而,重命名并不总是产生高质量、持久的名称;在许多情况下,开发人员在系统的整个生命周期中对同一标识符执行多个重命名操作。在本文中,我们报告了一项大规模的实证研究,该研究考察了经历多次重命名的标识符的发生率(即,重命名链)。我们的研究结果表明,重命名链的存在,几乎在每个项目中,与方法通常有更多的重命名链比其他标识符类型。此外,通常是同一个开发人员负责创建链中的所有重命名,大多数名称保持相同的语法结构。了解重命名链可以帮助我们就如何制作高质量、持久的标识符提供更有力的建议和有针对性的研究。

英文摘要:

Identifier names play a significant role in program comprehension activities, with high-quality names improving developer productivity and system quality. To correct poor-quality names, developers rename identifiers to reflect their intended purpose better. However, renames do not always result in high-quality, long-lasting names; in many cases, developers perform multiple rename operations on the same identifier throughout the system's lifetime. In this paper, we report on a large-scale empirical study that examines the occurrence of identifiers undergoing multiple renames (i.e., rename chains). Our findings show the presence of rename chains in almost every project, with methods typically having more rename chains than other identifier types. Furthermore, it is usually the same developer responsible for creating all renames within a chain, with most names maintaining the same grammatical structure. Understanding rename chains can help us provide stronger advice, and targeted research, on how to craft high-quality, long-lasting identifiers.

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

↑