Taxonomy of inline code comment smells

buir.contributor.authorJabrayilzade, Elgun
buir.contributor.authorYurtoğlu, Ayda
buir.contributor.authorTüzün, Eray
buir.contributor.orcidJabrayilzade, Elgun|0000-0003-2932-4976
buir.contributor.orcidTüzün, Eray|0000-0002-5550-7816
dc.citation.epage58-53
dc.citation.issueNumber3
dc.citation.spage58-1
dc.citation.volumeNumber29
dc.contributor.authorJabrayilzade, Elgun
dc.contributor.authorYurtoğlu, Ayda
dc.contributor.authorTüzün, Eray
dc.date.accessioned2025-02-26T12:00:34Z
dc.date.available2025-02-26T12:00:34Z
dc.date.issued2024-04-03
dc.departmentDepartment of Computer Engineering
dc.description.abstractCode comments play a vital role in source code comprehension and software maintainability. It is common for developers to write comments to explain a code snippet, and commenting code is generally considered a good practice in software engineering. However, low-quality comments can have a detrimental effect on software quality or be ineffective for code understanding. This study aims to create a taxonomy of inline code comment smells and determine how frequently each smell type occurs in software projects. We conducted a multivocal literature review to define the initial taxonomy of inline comment smells. Afterward, we manually labeled 2447 inline comments from eight open-source projects where half of them were Java, and another half were Python projects. We created a taxonomy of 11 inline code comment smell types and found out that the smells exist in both Java and Python projects with varying degrees. Moreover, we conducted an online survey with 41 software practitioners to learn their opinions on these smells and their impact on code comprehension and software maintainability. The survey respondents generally agreed with the taxonomy; however, they reported that some smell types might have a positive effect on code comprehension in certain scenarios. We also opened pull requests and issues fixing the comment smells in the sampled projects, where we got a 27% acceptance rate. We share our manually labeled dataset online and provide implications for software engineering practitioners, researchers, and educators.
dc.identifier.doi10.1007/s10664-023-10425-5
dc.identifier.eissn1573-7616
dc.identifier.issn1382-3256
dc.identifier.urihttps://hdl.handle.net/11693/116873
dc.language.isoEnglish
dc.publisherSpringer
dc.relation.isversionofhttps://dx.doi.org/10.1007/s10664-023-10425-5
dc.rightsCC BY 4.0 (Attribution 4.0 International Deed)
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.source.titleEmpirical Software Engineering
dc.subjectCode comments
dc.subjectComment smells
dc.subjectInline code comments
dc.subjectDataset
dc.subjectTaxonomy
dc.subjectMultivocal literature review
dc.titleTaxonomy of inline code comment smells
dc.typeArticle

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Taxonomy_of_inline_code_comment_smells.pdf
Size:
4.68 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: