Skip to search boxSkip to navigationSkip to main content

Self-Admitted Technical Debt and Comments’ Polarity: An Empirical Study

Output:
Contribution to journal
Article
Academic
Peer-review

Open access

Information

Output type

Output:
Contribution to journal
Article
Academic
Peer-review

Original language

English

Article number

139

Journal (Volume, Issue Number)

Empirical Software Engineering (Volume 27, Issue 6)

Publication milestones

  • Published - 26/07/2022

Publication status

Published - 26/07/2022

ISSN

1382-3256

Abstract

Self-Admitted Technical Debt (SATD) consists of annotations—typically, but not only, source code comments—pointing out incomplete features, maintainability problems, or, in general, portions of a program not-ready yet. The way a SATD comment is written, and specifically its polarity, may be a proxy indicator of the severity of the problem and, to some extent, of the priority with which it should be addressed. In this paper, we study the relationship between different types of SATD comments in source code and their polarity, to understand in which circumstances (and why) developers use negative or rather neutral comments to highlight an SATD. To address this goal, we combine a manual analysis of 1038 SATD comments from a curated dataset with a survey involving 46 professional developers. First of all, we categorize SATD content into its types. Then, we study the extent to which developers express negative sentiment in different types of SATD as a proxy for priority, and whether they believe this can be considered as an acceptable practice. Finally, we look at whether such annotations contain additional details such as bug references and developers’ names/initials. Results of the study indicate that SATD comments are mainly used for annotating poor implementation choices (≃41%) and partially implemented functionality (≃22%). The latter may depend from “waiting” for other features being implemented, and this makes SATD comments more negatives than in other cases. Around 30% of the survey respondents agree on using/interpreting negative sentiment as a proxy for priority, while 50% of them indicate that it would be better to discuss SATD on issue trackers and not in the source code. However, while our study indicates that open-source developers use links to external systems, such as bug identifiers, to annotate high-priority SATD, better tool support is required for SATD management.

Metrics

Metrics

SciVal
FWCI
0.69
SciVal
Author count
5
SciVal
Paper percentile
60
SciVal
citations
21
Scopus
citations
21
Download statistics
Download count
634

PlumX, opens in new tab

Captures
30
Citation count
21