Skip to main content Skip to navigation

Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming

Project Overview

The document examines the role of generative AI, particularly AI code generators like OpenAI Codex, in enhancing education for novice learners in programming. A controlled study involving 69 participants aged 10-17 demonstrated that access to Codex significantly improved code authoring performance without negatively impacting their manual code modification skills. The findings indicate that these AI tools provide instant feedback and assistance, enriching the coding exercises designed for beginners and fostering a more effective learning experience. However, the study also raises concerns about the potential risks associated with over-reliance on AI, highlighting the need for balance in its use. Overall, while AI coding assistants show considerable promise in improving educational outcomes for novice programmers, careful consideration of their implications on learning retention and dependency is essential.

Key Applications

AI Code Assistants

Context: Introductory programming courses for novice learners aged 10-17, where students use AI tools like OpenAI Codex and other AI code generators to assist them in completing programming tasks. This includes receiving real-time feedback and suggestions during the coding process.

Implementation: A controlled experimental and practical application where students engage with AI code assistants to enhance their coding experience. These tools provide real-time assistance, feedback on coding tasks, and suggestions for improvements, helping students learn programming more effectively.

Outcomes: Participants showed increased engagement and understanding of coding concepts, improved coding skills, a 1.15x increase in completion rates, and 1.8x higher scores on coding tasks. Additionally, there was a reduction in frustration among learners, with no decrease in performance on manual code modification tasks.

Challenges: Challenges include potential over-reliance on AI tools leading to a misunderstanding of AI-generated code, dependence on these tools that may hinder independent problem-solving skills, and concerns regarding academic integrity.

Implementation Barriers

Dependence on Technology and Pedagogical Barrier

Learners may become overly reliant on AI tools, potentially hindering their ability to write code independently and limiting their independent learning and problem-solving abilities.

Proposed Solutions: Implement features that encourage active engagement with coding tasks, limit AI tool usage until a learner demonstrates understanding, and encourage a balance between using AI code generators and developing foundational coding skills through traditional methods.

Understanding Generated Code

Learners may struggle to understand the AI-generated code, which can affect their ability to modify it effectively.

Proposed Solutions: Provide clear explanations and documentation alongside AI-generated code to enhance comprehension.

Academic Integrity

Concerns about plagiarism and academic dishonesty arise from the use of AI-generated code.

Proposed Solutions: Establish guidelines and educational practices that emphasize learning over mere completion of tasks.

Technical Barrier

Students may encounter difficulties in integrating AI tools with their coding environment or understanding how to effectively use them.

Proposed Solutions: Providing comprehensive tutorials and support for using AI tools effectively in programming tasks.

Project Team

Majeed Kazemitabaar

Researcher

Justin Chow

Researcher

Carl Ka To Ma

Researcher

Barbara J. Ericson

Researcher

David Weintrop

Researcher

Tovi Grossman

Researcher

Contact Information

For information about the paper, please contact the authors.

Authors: Majeed Kazemitabaar, Justin Chow, Carl Ka To Ma, Barbara J. Ericson, David Weintrop, Tovi Grossman

Source Publication: View Original PaperLink opens in a new window

Project Contact: Dr. Jianhua Yang

LLM Model Version: gpt-4o-mini-2024-07-18

Analysis Provider: Openai

Let us know you agree to cookies