Which is a better programming assistant? A comparative study between chatgpt and stack overflow
Jinrun Liu, Xinyu Tang, Linlin Li, Panpan Chen, Yepang Liu

TL;DR
This study compares ChatGPT and Stack Overflow in aiding programmers, finding ChatGPT excels in algorithmic and library tasks while Stack Overflow is better for debugging, with differences in speed and user perceptions analyzed.
Contribution
It provides an empirical comparison of ChatGPT and Stack Overflow's effectiveness in different programming tasks through a user study.
Findings
ChatGPT outperforms Stack Overflow in code quality for algorithms and libraries.
Stack Overflow is more effective for debugging tasks.
ChatGPT enables faster completion of algorithmic challenges.
Abstract
Programmers often seek help from Q\&A websites to resolve issues they encounter during programming. Stack Overflow has been a widely used platform for this purpose for over a decade. Recently, revolutionary AI-powered platforms like ChatGPT have quickly gained popularity among programmers for their efficient and personalized programming assistance via natural language interactions. Both platforms can offer valuable assistance to programmers, but it's unclear which is more effective at enhancing programmer productivity. In our paper, we conducted an exploratory user study to compare the performance of Stack Overflow and ChatGPT in enhancing programmer productivity. Two groups of students with similar programming abilities were instructed to use the two platforms to solve three different types of programming tasks: algorithmic challenges, library usage, and debugging. During the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOnline Learning and Analytics · Software Engineering Research · Artificial Intelligence in Healthcare and Education
