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

标识名称评价与建议模型的研究

Towards a Model to Appraise and Suggest Identifier Names

Anthony Peruma

摘要:

不知不觉中,软件系统源代码中的标识符在确定系统质量方面起着至关重要的作用。模棱两可和令人困惑的标识符名称不仅会导致开发人员误解代码的行为,还会增加理解时间,从而导致生产力的损失。尽管通过重命名操作纠正不好的名称是解决这个问题的一个可行的选择,但重命名本身是一种返工行为,并且不能避免缺陷注入。在这项研究中,我们的目标是了解驱动开发人员命名和重命名标识符的动机,以及他们在确定名称时所做的决定。使用我们的研究结果,我们提出了一个语言模型,确定标识符的行为的基础上的标识符名称的发展。作为构建模型的先决条件,我们进行了多项研究,以确定应该输入模型的特征。在本文中,我们讨论了我们已完成的研究结果,并证明通过进一步的研究继续对这一主题的研究。

英文摘要:

Unknowingly, identifiers in the source code of a software system play a vital role in determining the quality of the system. Ambiguous and confusing identifier names lead developers to not only misunderstand the behavior of the code but also increases comprehension time and thereby causes a loss in productivity. Even though correcting poor names through rename operations is a viable option for solving this problem, renaming itself is an act of rework and is not immune to defect injection. In this study, we aim to understand the motivations that drive developers to name and rename identifiers and the decisions they make in determining the name. Using our results, we propose the development of a linguistic model that determines identifier names based on the behavior of the identifier. As a prerequisite to constructing the model, we conduct multiple studies to determine the features that should feed into the model. In this paper, we discuss findings from our completed studies and justify the continuation of research on this topic through further studies.

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

↑