English

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

Human-Computer Interaction 2026-03-26 v1

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.

Keywords

Cite

@article{arxiv.2603.23830,
  title  = {CodeExemplar: Example-Based Scaffolding for Introductory Programming in the GenAI Era},
  author = {Boxuan Ma and Shinichi Konomi},
  journal= {arXiv preprint arXiv:2603.23830},
  year   = {2026}
}
R2 v1 2026-07-01T11:36:32.649Z