Saved in:
Bibliographic Details
Main Authors: Wang, Haoye, Gao, Zhipeng, Bi, Tingting, Grundy, John, Wang, Xinyu, Wu, Minghui, Yang, Xiaohu
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.15277
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916657160519680
author Wang, Haoye
Gao, Zhipeng
Bi, Tingting
Grundy, John
Wang, Xinyu
Wu, Minghui
Yang, Xiaohu
author_facet Wang, Haoye
Gao, Zhipeng
Bi, Tingting
Grundy, John
Wang, Xinyu
Wu, Minghui
Yang, Xiaohu
contents Software development is a collaborative process that involves various interactions among individuals and teams. TODO comments in source code play a critical role in managing and coordinating diverse tasks during this process. However, this study finds that a large proportion of open-source project TODO comments are left unresolved or take a long time to be resolved. About 46.7\% of TODO comments in open-source repositories are of low-quality (e.g., TODOs that are ambiguous, lack information, or are useless to developers). This highlights the need for better TODO practices. In this study, we investigate four aspects regarding the quality of TODO comments in open-source projects: (1) the prevalence of low-quality TODO comments; (2) the key characteristics of high-quality TODO comments; (3) how are TODO comments of different quality managed in practice; and (4) the feasibility of automatically assessing TODO comment quality. Examining 2,863 TODO comments from Top100 GitHub Java repositories, we propose criteria to identify high-quality TODO comments and provide insights into their optimal composition. We discuss the lifecycle of TODO comments with varying quality. we construct deep learning-based methods that show promising performance in identifying the quality of TODO comments, potentially enhancing development efficiency and code quality.
format Preprint
id arxiv_https___arxiv_org_abs_2503_15277
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle What Makes a Good TODO Comment?
Wang, Haoye
Gao, Zhipeng
Bi, Tingting
Grundy, John
Wang, Xinyu
Wu, Minghui
Yang, Xiaohu
Software Engineering
Software development is a collaborative process that involves various interactions among individuals and teams. TODO comments in source code play a critical role in managing and coordinating diverse tasks during this process. However, this study finds that a large proportion of open-source project TODO comments are left unresolved or take a long time to be resolved. About 46.7\% of TODO comments in open-source repositories are of low-quality (e.g., TODOs that are ambiguous, lack information, or are useless to developers). This highlights the need for better TODO practices. In this study, we investigate four aspects regarding the quality of TODO comments in open-source projects: (1) the prevalence of low-quality TODO comments; (2) the key characteristics of high-quality TODO comments; (3) how are TODO comments of different quality managed in practice; and (4) the feasibility of automatically assessing TODO comment quality. Examining 2,863 TODO comments from Top100 GitHub Java repositories, we propose criteria to identify high-quality TODO comments and provide insights into their optimal composition. We discuss the lifecycle of TODO comments with varying quality. we construct deep learning-based methods that show promising performance in identifying the quality of TODO comments, potentially enhancing development efficiency and code quality.
title What Makes a Good TODO Comment?
topic Software Engineering
url https://arxiv.org/abs/2503.15277