Publication Type
Journal Article
Version
publishedVersion
Publication Date
1-2026
Abstract
This paper investigates the factors influencing programmers’ adoption of AI-generated JavaScript code recommendations within the context of lightweight, function-level programming tasks. It extends prior research by (1) utilizing objective (as opposed to the typically self-reported) measurements for programmers’ adoption of AI-generated code and (2) examining whether AI-generated comments added to code recommendations and development expertise drive AI-generated code adoption. We tested these potential drivers in an online experiment with 173 programmers. Participants were asked to answer some questions to demonstrate their level of development expertise. Then, they were asked to solve a LeetCode problem without AI support. After attempting to solve the problem on their own, they received an AI-generated solution to assist them in refining their solutions. The solutions provided were manipulated to include or exclude AI-generated comments (a between-subjects factor). Programmers’ adoption of AI-generated code was gauged by code similarity between AI-generated solutions and participants’ submitted solutions, providing a behavioral measurement of code adoption behaviors. Our findings revealed that, within the context of function-level programming tasks, the presence of comments significantly influences programmers’ adoption of AI-generated code regardless of the participants’ development expertise.
Keywords
AI programming assistant, Empirical software engineering, Human-computer interaction, Technology adoption
Discipline
Software Engineering
Research Areas
Software and Cyber-Physical Systems
Publication
Journal of Systems and Software
Volume
231
First Page
1
Last Page
19
ISSN
0164-1212
Identifier
10.1016/j.jss.2025.112634
Publisher
Elsevier
Citation
LI, Changwen; TREUDE, Christoph; and TUREL, Ofir.
Do comments and expertise still matter? An experiment on programmers’ adoption of AI-generated JavaScript code. (2026). Journal of Systems and Software. 231, 1-19.
Available at: https://ink.library.smu.edu.sg/sis_research/10425
Copyright Owner and License
Authors-CC-BY
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.
Additional URL
https://doi.org/10.1016/j.jss.2025.112634