Analyzing ChatGPT Assistance in Programming
摘要
In this study, we investigate how developers interact with ChatGPT when seeking programming assistance to identify trends in language preferences and access communication efficiency. We analyze a public dataset, DevGPT, comprising 17,622 ChatGPT prompts, and 12,031 code snippets. Our findings show Python, Bash, and JavaScript as primary languages used in developer-ChatGPT interactions. We find that data manipulation/exchange languages/formats, namely JSON and SQL, require fewer interactions, while general-purpose languages such as C++ and C# need lengthier conversations. The findings provide valuable insights for improving training programs and enhancing ChatGPT’s language understanding, ultimately optimizing collaboration between developers and AI tools in software development.