Exploring the Characteristics of Identifiers: A Large-Scale Empirical Study on 5,000 Open Source Projects
Exploring the Characteristics of Identifiers: A Large-Scale Empirical Study on 5,000 Open Source Projects
复制标题
探索标识符的特征:对 5000 个开源项目的大规模实证研究
DOI:
10.1109/access.2020.3013694
复制
发表时间:
2020
期刊:
影响因子:
3.9
通讯作者:
Zhiqiu Huang
中科院分区:
文献类型:
--
作者:
Jingxuan Zhang;Siyuan Liu;Junpeng Luo;Jiahui Liang;Zhiqiu Huang
Informative identifiers are crucial for the comprehensibility and maintainability of programs. Exploring properties of identifiers and investigating their impact on software artifacts have been an important research focus. However, to enable such capabilities, fundamentally we need to have comprehensive understanding on the main characteristics of identifiers at the first place, which is unfortunately not sufficiently studied. For example, it remained unclear what Part of Speech (POS) tags that developers commonly use to define identifiers. To answer such open issues, we conducted a large-scale empirical study on the naturalness of identifiers, based on 5,000 open source Java and Android projects, concerning five dimensions of identifiers: distributions, compositions, POS tags, lengths, and initializations of identifiers. Results of the empirical study contain five key findings for identifiers in programs, including, e.g., the observation that the three POS tags (i.e., nouns, verbs, and adjectives) are the most commonly used ones when developers define identifiers. Furthermore, based on our findings, we provide implications and insights for developers, researchers, and Integrated Development Environments (IDEs) in the context that identifier-related activities are performed or functionalities are enabled.