Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Jin, Kailun, Wang, Chung-Yu, Pham, Hung Viet, Hemmati, Hadi
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916162988670976
author Jin, Kailun
Wang, Chung-Yu
Pham, Hung Viet
Hemmati, Hadi
author_facet Jin, Kailun
Wang, Chung-Yu
Pham, Hung Viet
Hemmati, Hadi
contents Large language models (LLMs) have demonstrated notable proficiency in code generation, with numerous prior studies showing their promising capabilities in various development scenarios. However, these studies mainly provide evaluations in research settings, which leaves a significant gap in understanding how effectively LLMs can support developers in real-world. To address this, we conducted an empirical analysis of conversations in DevGPT, a dataset collected from developers' conversations with ChatGPT (captured with the Share Link feature on platforms such as GitHub). Our empirical findings indicate that the current practice of using LLM-generated code is typically limited to either demonstrating high-level concepts or providing examples in documentation, rather than to be used as production-ready code. These findings indicate that there is much future work needed to improve LLMs in code generation before they can be integral parts of modern software development.
format Preprint
id arxiv_https___arxiv_org_abs_2402_11702
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generation
Jin, Kailun
Wang, Chung-Yu
Pham, Hung Viet
Hemmati, Hadi
Software Engineering
Artificial Intelligence
Machine Learning
I.2.2
Large language models (LLMs) have demonstrated notable proficiency in code generation, with numerous prior studies showing their promising capabilities in various development scenarios. However, these studies mainly provide evaluations in research settings, which leaves a significant gap in understanding how effectively LLMs can support developers in real-world. To address this, we conducted an empirical analysis of conversations in DevGPT, a dataset collected from developers' conversations with ChatGPT (captured with the Share Link feature on platforms such as GitHub). Our empirical findings indicate that the current practice of using LLM-generated code is typically limited to either demonstrating high-level concepts or providing examples in documentation, rather than to be used as production-ready code. These findings indicate that there is much future work needed to improve LLMs in code generation before they can be integral parts of modern software development.
title Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generation
topic Software Engineering
Artificial Intelligence
Machine Learning
I.2.2
url https://arxiv.org/abs/2402.11702