Back to search

Chalmers University of Technology

Impact of Generative AI on Learning Programming

Abstract

dc:description.abstract

Generative AI has become a powerful tool, particularly in code generation for nonprogrammers. Despite its potential, non-experienced programmers may face challenges and limited knowledge acquisition. This study analyzes whether generative AI, specifically ChatGPT, can assist individuals with limited programming knowledge in solving programming tasks in Java and if they learn from the experience. Additionally, it examines the strategies participants use when leveraging ChatGPT 3.5. A controlled experiment was conducted to observe the effects of ChatGPT on problem-solving and learning. Participants completed three programming tasks: a baseline task, a task using ChatGPT, and a final task without ChatGPT to assess knowledge retention. This revealed varying degrees of success in task completion with ChatGPT. While participants retained conceptual knowledge, practical application without ChatGPT remained challenging. Thematic analysis of participant prompts and exit interviews revealed three main strategies: learning-focused, task-focused leveraging ChatGPT, and conversational interaction with ChatGPT. The learning-focused strategy involves using the AI to gain knowledge but may be ineffective if rushed, hindering comprehension. In contrast, the task-focused strategy prioritizes task completion but may lead to overreliance on AI, limiting long-term learning. The conversational strategy is distinct because it does not serve a specific purpose like the other two. Instead, it involves a back-and-forth interaction with the AI, where participants build upon ChatGPT’s previous responses. Overall, participants had a positive attitude towards generative AI, recognizing both its benefits and limitations. The study highlights the importance of prior knowledge and effective prompt engineering to formulate informed prompts and obtain quality responses, thereby improving the overall experience with AI.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Bang, Kenny
  • Dang, Michael
Advisor dc:contributor.supervisor
  • Leitner, Philipp
Committee member dc:contributor.committeemember
  • Fotrousi, Farnaz

Subjects

dc:subject × 8

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX05

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Bang, Kenny; Dang, Michael. Impact of Generative AI on Learning Programming. H thesis, 2024. https://hdl.handle.net/20.500.12380/309069