Which is a better programming assistant? A comparative study between chatgpt and stack overflow

08/26/2023
by   Jinrun Liu, et al.
0

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 experiments, we measured and compared the quality of code produced and the time taken to complete tasks for the two groups. The results show that, concerning code quality, ChatGPT outperforms Stack Overflow significantly in helping complete algorithmic and library-related tasks, while Stack Overflow is better for debugging tasks. Regarding task completion speed, the ChatGPT group is obviously faster than the Stack Overflow group in the algorithmic challenge, but the two groups have a similar performance in the other two tasks. Additionally, we conducted a post-experiment survey with the participants to understand how the platforms have helped them complete the programming tasks. We analyzed the questionnaires to summarize ChatGPT and Stack Overflow's strengths and weaknesses pointed out by the participants. By comparing these, we identified the reasons behind the two platforms' divergent performances in programming assistance.

READ FULL TEXT

page 4

page 6

page 8

research
08/12/2023

Copilot Security: A User Study

Code generation tools driven by artificial intelligence have recently be...
research
01/31/2020

StackEmo-Towards Enhancing User Experience by Augmenting Stack Overflow with Emojis

With the increase in acceptance of open source platforms for knowledge s...
research
08/14/2015

Is Stack Overflow Overflowing With Questions and Tags

Programming question and answer (Q & A) websites, such as Quora, Stack O...
research
08/21/2022

Friendliness Of Stack Overflow Towards Newbies

In today's modern digital world, we have a number of online Question and...
research
06/27/2019

Enhancing Python Compiler Error Messages via Stack Overflow

Background: Compilers tend to produce cryptic and uninformative error me...
research
07/07/2022

Enhancing a Student Productivity Model for Adaptive Problem-Solving Assistance

Research on intelligent tutoring systems has been exploring data-driven ...
research
02/26/2023

Comparing Sentence-Level Suggestions to Message-Level Suggestions in AI-Mediated Communication

Traditionally, writing assistance systems have focused on short or even ...

Please sign up or login with your details

Forgot password? Click here to reset