一句话:通过对1100余名专业开发者的调查,发现方法命名规范在实践中获高度共识,且经验与编程语言影响甚微。
该论文报告了一项针对专业软件开发者的大规模调查(超过1100份回复),旨在检验软件工程文献中提出的源代码方法命名规范是否被开发者普遍接受和实际使用。调查还分析了开发年限与编程语言知识等因素对规范认同的影响。结果显示,参与者对各项命名标准的重要性及其在方法名上的适用性高度一致;工作经验和所用编程语言几乎不影响回答。作者据此认为这些标准基本有效且较为完整,并为开发过程和代码评审中的自动化方法名评估奠定了基础。
This paper describes the results of a large (+1100 responses) survey of professional software developers concerning standards for naming source code methods. The various standards for source code method names are derived from and supported in the software engineering literature. The goal of the survey is to determine if there is a general consensus among developers that the standards are accepted and used in practice. Additionally, the paper examines factors such as years of experience and programming language knowledge in the context of survey responses. The survey results show that participants very much agree about the importance of various standards and how they apply to names and that years of experience and the programming language has almost no effect on their responses. The results imply that the given standards are both valid and to a large degree complete. The work provides a foundation for automated method name assessment during development and code reviews.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{AlsuhaibaniNDCM21,
title = {On the Naming of Methods: A Survey of Professional Developers},
author = {Reem Alsuhaibani and Christian Newman and Michael Decker and Michael Collard and Jonathan Maletic},
booktitle = {ICSE},
year = {2021},
doi = {10.1109/icse43902.2021.00061}
}