识别符名称中数字的理解:一项探索性研究
Understanding Digits in Identifier Names: An Exploratory Study
摘要:
在进行任何软件维护之前,开发人员必须读取要维护的代码中的标识符名称。因此,高质量的标识符名称对于高效的程序理解和维护活动是必不可少的。由于开发人员可以根据自己的喜好自由地构造标识符名称,因此很难自动推理标识符名称背后的质量和语义。研究标识符名称的结构可以帮助缓解这个问题。现有的研究主要集中在研究标识符中的单词,但也有其他符号出现在标识符名称中-例如数字。本文通过对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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。