What Do Developers Discuss about Code Comments?
Pooja Rani, Mathias Birrer, Sebastiano Panichella, Mohammad, Ghafari, Oscar Nierstrasz

TL;DR
This paper analyzes online developer discussions about code comments to identify common questions, concerns, and gaps in commenting practices, highlighting the need for better tools and guidelines.
Contribution
It provides a taxonomy of developer questions on code comments derived from analysis of Stack Overflow and Quora discussions, revealing gaps in existing guidelines and tool support.
Findings
40% of questions on Stack Overflow concern documentation tools and environments
20% of questions on Stack Overflow relate to automatic comment generation
35% of Quora questions focus on background information about comments
Abstract
Code comments are important for program comprehension, development, and maintenance tasks. Given the varying standards for code comments, and their unstructured or semi-structured nature, developers get easily confused (especially novice developers) about which convention(s) to follow, or what tools to use while writing code documentation. Thus, they post related questions on external online sources to seek better commenting practices. In this paper, we analyze code comment discussions on online sources such as Stack Overflow (SO) and Quora to shed some light on the questions developers ask about commenting practices. We apply Latent Dirichlet Allocation (LDA) to identify emerging topics concerning code comments. Then we manually analyze a statistically significant sample set of posts to derive a taxonomy that provides an overview of the developer questions about commenting practices.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Advanced Malware Detection Techniques · Web Application Security Vulnerabilities
