Back to search

Open Universiteit

A search for the Ten Commentments: An exploratory study on automated quality assessment of comments in Java source code

Abstract

dc:description.abstract

Context It is not always clear to developers how they should write good comments, nor are there many tools that help developers assess the quality of their comments.<br/>Objective Our goal is to gain better insight into the features that are associated with good source code comments, by developing a predictive model that can automatically assess the quality of comments in a software project.<br/>Method First we derive features that may affect comment quality from scientific literature and compare them with those found in open-source Java projects. We then conduct an online survey among software developers to gather quality ratings for a diverse set of comments, which we use to construct a predictive model for comment quality.<br/>Results Our results suggest that a wide array of features exist for comments, but not all may be equally discernable in open-source projects. Our survey shows that a lot of disagreement exists between different developers about which comments are high-quality, presumably due to factors which cannot be derived from the source code itself. Consequently, our predictive models are only able to partially explain the variance in ratings given by developers.<br/>Conclusion Disagreement among developers about what constitutes a high-quality comment poses challenges for the construction of automated predictive models for comment quality.

Degree

thesis:*
Name dc:type.qualificationname
Master's Thesis
Level dc:type.qualificationlevel
Student thesis
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Lung, C.
Advisors dc:contributor.advisor
  • Rahimi, Ebrahim
  • Barendsen, Erik

Rights

Language dc:language
eng

Identifiers

dc:identifier.*
Identifier
oai:research.ou.nl:studenttheses/ca601ab2-5a24-434d-8595-edbbf3dbe6d0

Chain of custody

source
Harvested from
Open Universiteit
Base URL
research.ou.nl/ws/oai
Last updated
2026-11-25
Source record
OAI-PMH GetRecord
related terms
citation

Lung, C.. A search for the Ten Commentments: An exploratory study on automated quality assessment of comments in Java source code. Student thesis thesis, 2022. https://research.ou.nl/en/studentTheses/ca601ab2-5a24-434d-8595-edbbf3dbe6d0