Understanding source code comments at large-scale
Hao He · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · 2019
Source code comments are important for any software, but the basic patterns of writing comments across domains and programming languages remain unclear. In this paper, we take a first step toward understanding differences in commenting practices by analyzing the comment density of 150 projects in 5 different programming languages. We have found that there are noticeable differences in comment density, which may be related to the programming language used in the project and the purpose of the project.
Cited by 25 works. doi:10.1145/3338906.3342494
Authors
References
- Summarizing Source Code using a Neural Attention Model
- Metrics for assessing a software system's maintainability
- GHTorrent: Github’s data from a firehose
- Deep code comment generation
- Proceedings of the 24th international conference on Software engineering - ICSE '02
- /*icomment
- Code quality analysis in open source software development
- Program readability: procedures versus comments
- The effect of modularization and comments on program comprehension
- AutoComment: Mining question and answer sites for automatic comment generation