Quality analysis of source code comments
Daniela Steidl, Benjamin Hummel, Elmar Juergens · International Conference on Program Comprehension · 2013
A significant amount of source code in software systems consists of comments, i. e., parts of the code which are ignored by the compiler. Comments in code represent a main source for system documentation and are hence key for source code understanding with respect to development and maintenance. Although many software developers consider comments to be crucial for program understanding, existing approaches for software quality analysis ignore system commenting or make only quantitative claims. Hence, current quality analyzes do not take a significant part of the software into account. In this work, we present a first detailed approach for quality analysis and assessment of code comments. The approach provides a model for comment quality which is based on different comment categories. To categorize comments, we use machine learning on Java and C/C++ programs. The model comprises different quality aspects: by providing metrics tailored to suit specific categories, we show how quality aspects of the model can be assessed. The validity of the metrics is evaluated with a survey among 16 experienced software developers, a case study demonstrates the relevance of the metrics in practice.
Cited by 199 works. doi:10.1109/icpc.2013.6613836
Authors
References
- C4.5: Programs for Machine Learning
- A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection
- Recovering Documentation-to-Source-Code Traceability Links using Latent Semantic Indexing
- Recovering documentation-to-source-code traceability links using latent semantic indexing
- Metrics for assessing a software system's maintainability
- A study of the documentation essential to software maintenance
- Information retrieval models for recovering traceability links between code and documentation
- Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes
- Program readability: procedures versus comments
- The effect of modularization and comments on program comprehension