Bilkent University
Department of Computer Engineering
M.S.THESİS PRESENTATİON

 

Taxonomy of Inline Code Comment Smells

 

Elgun Jabrayilzade
Master Student
(Supervisor: Asst. Prof. Eray Tüzün )
Computer Engineering Department
Bilkent University

Abstract: Code 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 as a good practice in software engineering. However, low-quality comments can have a detrimental effect on software quality or be ineffective for code understanding. In this study, we conducted a multivocal literature review and created a taxonomy of inline code comments smells consisting of 11 types. 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 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 effect 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. Additionally, using our labeled dataset, we developed various machine learning-based models to categorize the smell types automatically. Our best model achieved an F1 score of 0.51. We share our manually labeled dataset online and provide implications of this study for software engineering practitioners, researchers, and educators.

 

DATE: 4 July 2022, Monday @ 14:00 Zoom