five

How solution snippets are presented in answers posted on Stack Overflow and how they could be potentially reused.

收藏
NIAID Data Ecosystem2026-05-02 收录
下载链接:
https://zenodo.org/record/5816299
下载链接
链接失效反馈
官方服务:
资源简介:
Software engineering Q&A websites (e.g., Stack Overflow), harness the collective expertise of users to address technical queries. Over time, these platforms evolve into valuable repositories of software engineering knowledge. Such repositories serve as essential resources for developers looking for solutions to common programming problems. In Stack Overflow, developers may approach answering questions in various ways. Gaining insight into how developers formulate their answers on Stack Overflow can enhance knowledge sharing and streamline the process of finding solutions. Furthermore, such insights could also inform improvements in Generative Artificial Intelligence (GenAI) tools to better align generated source code for comprehension and understandability, as AI-generated answers are known to include irrelevant information and hallucinations. In this study, we seek to deepen the understanding of how solutions are presented on Stack Overflow. We conducted an empirical study that investigates programming questions that are answered with a Solution Snippet to understand how a Solution Snippet is presented, and the ways how it should be adapted when it is reused. Our study resulted in two categorizations: 1) eight categories of how Solution Snippets are presented on Stack Overflow answers and 2) five categories of how Solution Snippets could be adapted for reuse. Then, we analyzed these categorizations and discussed the implications. We anticipate that Stack Overflow will remain a valuable resource for the foreseeable future, and the insights revealed in our paper lay the groundwork for improving program comprehension of Solution Snippets on Stack Overflow and GenAI tools.
创建时间:
2024-11-05
二维码
社区交流群
二维码
科研交流群
商业服务