论文标题

了解标识符名称中的数字:探索性研究

Understanding Digits in Identifier Names: An Exploratory Study

论文作者

Peruma, Anthony, Newman, Christian D.

论文摘要

在进行任何软件维护之前,开发人员必须阅读要维护的代码中发现的标识符名称。因此,高质量的标识符名称对于生产计划的理解和维护活动至关重要。由于开发人员可以自由地构建标识符名称,因此很难自动推荐标识符名称背后的质量和语义。研究标识符名称的结构可以帮助减轻此问题。现有的研究重点是研究标识符中的单词,但是标识符名称中还有其他符号(例如数字)。本文通过对800个开源Java系统的实证研究探讨了标识符名称中数字的存在和目的。我们研究数字如何有助于标识符名称的语义以及包含数字的标识符如何通过重命名随着时间的推移而发展。我们设想我们的发现提高了名称评估效率和建议工具和技术的效率。

Before any software maintenance can occur, developers must read the identifier names found in the code to be maintained. Thus, high-quality identifier names are essential for productive program comprehension and maintenance activities. With developers free to construct identifier names to their liking, it can be difficult to automatically reason about the quality and semantics behind an identifier name. Studying the structure of identifier names can help alleviate this problem. Existing research focuses on studying words within identifiers, but there are other symbols that appear in identifier names -- such as digits. This paper explores the presence and purpose of digits in identifier names through an empirical study of 800 open-source Java systems. We study how digits contribute to the semantics of identifier names and how identifier names that contain digits evolve over time through renaming. We envision our findings improving the efficiency of name appraisal and recommendation tools and techniques.

扫码加入交流群

加入微信交流群

微信交流群二维码

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