CodeExemplar: Example-Based Scaffolding for Introductory Programming in the GenAI Era

📅 2026-03-24
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
In the era of generative artificial intelligence (GenAI), novice programmers often rely on direct code outputs, which can undermine their reasoning abilities. This work proposes an example-based scaffolding approach that leverages GenAI to generate differentiated examples—aligned with the target task in underlying reasoning structure but distinct in context—to foster analogical transfer and discourage verbatim copying. We introduce a two-dimensional taxonomy for example design along with generation guidelines, and implement a prototype system, CodeExemplar, integrating automated scoring and formative feedback. Preliminary classroom trials and teacher interviews indicate that this method effectively supports students’ conceptual understanding and reduces direct code replication, offering a viable pathway for harnessing GenAI to enhance programming education.

Technology Category

Natural Language Processing: Code Generation / Program Synthesis from Natural LanguageHumans and AI: Game Design — Procedural Content Generation & StorytellingCognitive Modeling & Cognitive Systems: Analogy

Application Category

Social Networks and Social Media: Generative AI / large language models and their impact on social systemsEconomics, Online Markets and Human Computation: Economic ramifications for generative AI infrastructure and applicationsSearch and Retrieval-Augmented AI: Web learning to rank, online learning, and counterfactual learning for ranking
📝 Abstract
Generative AI (GenAI) can generate working code with minimal effort, creating a tension in introductory programming: students need timely help, yet direct solutions invite copying and can short-circuit reasoning. To address this, we propose example-based scaffolding, where GenAI provides scaffold examples that match a target task's underlying reasoning pattern but differ in contexts to support analogical transfer while reducing copying. We contribute a two-dimensional taxonomy, design guidelines, and CodeExemplar, a prototype integrated with auto-graded tasks, with initial formative feedback from a classroom pilot and instructor interviews.
Problem

Research questions and friction points this paper is trying to address.

introductory programming
Generative AI
code copying
reasoning development
scaffolding
Innovation

Methods, ideas, or system contributions that make the work stand out.

example-based scaffolding
generative AI
analogical transfer
introductory programming
CodeExemplar
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
B
Boxuan Ma
Faculty of Arts and Science, Kyushu University, Fukuoka, Japan
S
Shin'ichi Konomi
Faculty of Arts and Science, Kyushu University, Fukuoka, Japan