Objective

Programming is hard to learn because students must combine logic, syntax, testing and debugging. Before large language models (LLMs, the AI tools behind chatbots such as ChatGPT), students learned from lectures, textbooks, peers and teachers. Now they can ask an AI tool to explain a concept, write code or fix an error. Teachers can also use these tools to make materials and test questions.

The authors argue that this shift creates tensions for teachers. Students may rely on instant code and skip the struggle that builds skill. Teachers cannot easily tell from a finished program what a student really understands. AI tools can also answer text-based tests, which raises worries about cheating.

Earlier work has offered tips and guidelines for teaching, assessment and ethics. The authors say it has not given programming teachers a framework based on learning theory that covers the whole of teaching. This paper is a perspective paper, which means the authors present an argument and a proposal, not new data.

Their aim was to propose the LLM-Assisted Modern Programming Pedagogy (LAMPP) model. It has four design principles covering teaching, lesson design, student engagement and assessment, with ethics treated as a thread across all of them. The model also lists ways to reduce learning losses from too much reliance on AI, which future studies can test.

Methods

This is not an experiment or a survey. It is a perspective paper, so the authors built their model by reading earlier research and linking it to well-known learning theories. The paper does not describe a formal search method, and it does not report new participants, a setting or a time period. What this kind of paper can show is a reasoned proposal. It cannot show that the proposal works.

The authors first looked at what earlier studies said about how LLMs change four parts of programming education: the teacher's role, lesson design, student engagement and assessment, plus ethical concerns. They summarized 14 relevant studies on LLMs in programming education, and five of those empirical studies used a learning theory to explain their findings.

They then picked four theories that fit the tensions they found:

  • Constructivism: students build understanding by doing, testing and reflecting.
  • Social constructivism: learning grows through exchange with teachers, peers and, here, the AI tool.
  • Self-regulated learning: students set goals, watch their own progress and adjust.
  • Cognitive apprenticeship: learners are guided by an expert who gives hints and feedback, with the LLM in an expert-like helper role.

From these they wrote four design principles. For each one they described a mechanism, meaning a concrete way it could work in class, and a measure that future studies could use to test it. They also wrote a sample lesson plan for an introductory Python class, and listed limitations and ideas for putting the model in place step by step.

Key Findings

Because this is a proposal, the results are the model itself and the authors' arguments, not measured outcomes. The main parts are below.

The four design principles

  • Principle 1, change teaching: teachers keep guiding students but use the LLM for hints, comparison and feedback, not for direct answers. In one example, students get a partly working program and ask the tool for hints about the error. They then fix, run and test the code themselves.
  • Principle 2, design activities for AI-supported skills: students practice planning, prompting, evaluating, refining and reflecting. The authors suggest measuring prompt quality, evaluation tasks, reflection and programming performance.
  • Principle 3, redesign assessment: because AI can produce code and answer text tests, the authors suggest grading the student's reasoning as well as the final code. Ideas include asking students to explain AI-generated code, predict its output, and justify why a solution works. Other ideas are oral exams, code walkthroughs, and process records such as version histories and prompt logs. Classes can move from AI-assisted learning to guided practice and then to work without AI.
  • Principle 4, build in ethics: the class agrees on shared norms about acceptable and unacceptable AI use, and students plan, monitor and evaluate their own use of the tools.

Sample lesson

  • The sample activity asks beginners to write a Python program that finds the largest number in a list without a built-in function. Students must write the code first without the chatbot, may then ask for hints or error explanations, and must explain their final solution on their own.
  • They hand in their first code version, the prompts they used, and a short note on what changed.

What earlier studies showed

  • One earlier 16-week course study reported significant gains in programming learning, but it had no comparison group.
  • Another earlier study found better programming performance with an LLM helper, but it used a single group, so cause and effect could not be shown.

The authors say the proposed assessment methods are not necessarily new, but fit better with the way AI now changes the classroom. They also suggest three levels of allowed AI use for an activity: none, limited help such as explanations or debugging, and extensive help across the process.

Implications

What the authors recommend

  • Teachers: use the AI tool as a scaffold, not an answer machine. Require students to attempt the work first, explain the final code, and document how they used the tool. Set clear levels of allowed AI use for each task.
  • Schools and universities: adopt the design principles step by step, fitting them to class size and course length. Provide approved AI tools to reduce unequal access, and offer training, shared templates and rubrics.
  • Policymakers and researchers: use the model when thinking about curriculum, assessment and ethics rules, and test its mechanisms in studies at different education levels. The authors say the future of programming education may lie in designing ways for learners to work with these tools critically and ethically, not in banning them.

Our reading (not the authors' recommendation):

  • A teacher could start small. One graded task could ask students to hand in the first draft of their code and a short explanation, before trying a wider change.
  • Because the model has not been tested, it is best treated as a set of ideas to try and check, not a proven method. Teachers could compare grades or student explanations before and after a change to see if it helps.

The paper does not give evidence that these steps improve learning, so readers should hold any advice loosely until studies test it.

Limitations

The authors state that the model is not a definitive answer to the challenges LLMs bring. The main limits they give are:

  • Extra workload. Constructivist and social constructivist methods, and more varied teaching and assessment, may overwhelm teachers and students. Documenting every step could also pull students toward paperwork and away from learning to program.
  • Practical limits. Large classes, teachers handling several classes, no teaching assistants, missing school AI policies and limited teacher training could all get in the way.
  • Access. Paid versions of AI tools, privacy and school digital infrastructure may create unequal access.
  • Doing everything at once may be too much within the time of a single course.

The paper does not mention, but the model rests on the authors' reading of a small set of studies, and the paper does not describe how those were found or chosen. Other researchers could have picked different studies or theories.

The paper does not mention, but no teachers or students used the model, so there is no data on whether it improves learning, honesty in grading or student confidence. The sample lesson is only an illustration.

The authors also say their approaches are not necessarily new, since some assessment formats already existed. What is new is how they tie them to the AI setting.

Future Directions

The authors say the model's effectiveness remains to be evaluated and that future studies should test its mechanisms. Specific questions they raise include:

  • Do students who plan their AI use, write prompts, check outputs, refine solutions and reflect develop stronger AI-supported programming skills than students who mainly ask AI to produce code, or who do not use AI?
  • Does comparing a student's work with AI against their independent work give a truer picture of what they can do?
  • Which shared norms do students and teachers actually agree on in a programming class, and are these norms and self-regulated AI use linked to responsible AI behavior?
  • Do the mechanisms reduce programming skill loss that comes with LLM use, and do they work at different education levels?

They also call for training programs, standard templates and reusable teaching resources that help teachers apply the model in different class sizes and courses.

The bottom line: This perspective paper offers a plan, not proof. It argues that the real issue is how teachers organize AI tools in programming classes, not the tools themselves, and it proposes four principles, from guided hints to process-based grading and shared class rules. The ideas draw on established learning theories and a small set of earlier studies, but no one has tested the model with real students yet. Teachers can try parts of it on a small scale, while keeping in mind the added workload and the lack of evidence so far.