Are Prompt Engineering and TODO Comments Friends or Foes? An Evaluation on GitHub Copilot

2Citations
Citations of this article
30Readers
Mendeley users who have this article in their library.

Abstract

Code intelligence tools such as GitHub Copilot have begun to bridge the gap between natural language and programming language. A frequent software development task is the management of technical debts, which are suboptimal solutions or unaddressed issues which hinder future software development. Developers have been found to 'self-admit' technical debts (SATD) in software artifacts such as source code comments. Thus, is it possible that the information present in these comments can enhance code generative prompts to repay the described SATD? Or, does the inclusion of such comments instead cause code generative tools to reproduce the harmful symptoms of described technical debt? Does the modification of SATD impact this reaction? Despite the heavy maintenance costs caused by technical debt and the recent improvements of code intelligence tools, no prior works have sought to incorporate SATD towards prompt engineering. Inspired by this, this paper contributes and analyzes a dataset consisting of 36,381 TODO comments in the latest available revisions of their respective 102,424 repositories, from which we sample and manually generate 1,140 code bodies using GitHub Copilot. Our experiments show that GitHub Copilot can generate code with the symptoms of SATD, both prompted and unprompted. Moreover, we demonstrate the tool's ability to automatically repay SATD under different circumstances and qualitatively investigate the characteristics of successful and unsuccessful comments. Finally, we discuss gaps in which GitHub Copilot's successors and future researchers can improve upon code intelligence tasks to facilitate AI-assisted software maintenance.

References Powered by Scopus

Qualitative methods in empirical studies of software engineering

999Citations
N/AReaders
Get full text

A systematic mapping study on technical debt and its management

516Citations
N/AReaders
Get full text

An exploration of technical debt

330Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Data-Driven Evidence-Based Syntactic Sugar Design

1Citations
N/AReaders
Get full text

Exploring YouTube content creators’ perspectives on generative AI in language learning: Insights through opinion mining and sentiment analysis

0Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Obrien, D., Biswas, S., Imtiaz, S. M., Abdalkareem, R., Shihab, E., & Rajan, H. (2024). Are Prompt Engineering and TODO Comments Friends or Foes? An Evaluation on GitHub Copilot. In Proceedings - International Conference on Software Engineering (pp. 2707–2719). IEEE Computer Society. https://doi.org/10.1145/3597503.3639176

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 5

56%

Professor / Associate Prof. 3

33%

Lecturer / Post doc 1

11%

Readers' Discipline

Tooltip

Computer Science 7

88%

Sports and Recreations 1

13%

Save time finding and organizing research with Mendeley

Sign up for free