Using code from ChatGPT: Finding patterns in the developers’ interaction with ChatGPT
收藏B2SHARE2024-01-01 更新2026-04-23 收录
下载链接:
https://b2share.eudat.eu/records/db2ef5890fa44c7a85af366a50de73b9
下载链接
链接失效反馈官方服务:
资源简介:
ChatGPT can advise developers and provide code on how to fix bugs, add new features, refactor, reuse, and secure their code but currently, there is little knowledge about whether the developers trust ChatGPT’s responses and actually use the provided code. In this context, this study aims to identify patterns that describe the interaction of developers with ChatGPT with respect to the characteristics of the prompts and the actual use of the provided code by the developer. We performed a case study on 267,098 lines of code provided by ChatGPT related to commits, pull requests, files of code, and discussions between ChatGPT and developers. Our findings show that developers are more likely to integrate the given code snapshot in their code base when they have provided information to ChatGPT through several rounds of brief prompts that include problem-related specific words instead of using large textual or code prompts. Results also highlight the ability of ChatGPT to handle efficiently different types of problems across different programming languages.
提供机构:
Terzi Anastasia; Angelidis Pantelis; Bibi Stamatia; Tsitsimiklis Nikolaos
创建时间:
2024-01-01



