[Paper Review] Promptly: Using Prompt Problems to Teach Learners How to Effectively Utilize AI Code Generators
The paper introduces Prompt Problems as a pedagogy for teaching students to craft effective prompts for code-generating LLMs, and presents Promptly, a web tool that delivers and automatically evaluates prompt-generated code in a first-year Python course (n=54).
With their remarkable ability to generate code, large language models (LLMs) are a transformative technology for computing education practice. They have created an urgent need for educators to rethink pedagogical approaches and teaching strategies for newly emerging skill sets. Traditional approaches to learning programming have focused on frequent and repeated practice at writing code. The ease with which code can now be generated has resulted in a shift in focus towards reading, understanding and evaluating LLM-generated code. In parallel with this shift, a new essential skill is emerging -- the ability to construct good prompts for code-generating models. This paper introduces a novel pedagogical concept known as a `Prompt Problem', designed to help students learn how to craft effective prompts for LLMs. A Prompt Problem challenges a student to create a natural language prompt that leads an LLM to produce the correct code for a specific problem. To support the delivery of Prompt Problems at scale, in this paper we also present a novel tool called Promptly which hosts a repository of Prompt Problems and automates the evaluation of prompt-generated code. We report empirical findings from a field study in which Promptly was deployed in a first-year Python programming course (n=54). We explore student interactions with the tool and their perceptions of the Prompt Problem concept. We found that Promptly was largely well-received by students for its ability to engage their computational thinking skills and expose them to new programming constructs. We also discuss avenues for future work, including variations on the design of Prompt Problems and the need to study their integration into the curriculum and teaching practice.
Motivation & Objective
- Motivate the need to teach prompt engineering alongside traditional programming in the era of LLM-generated code.
- Introduce the Prompt Problem concept where students craft natural language prompts to generate correct code.
- Describe the Promptly tool that delivers Prompt Problems and automatically evaluates generated code.
- Report empirical findings from a field deployment in a first-year Python course and reflect on student experiences.
- Discuss design options and future directions for integrating Prompt Problems into curricula.
Proposed method
- Define and exemplify a Prompt Problem as an exercise where a visual problem is given and students craft prompts that guide an LLM to produce the required code.
- Develop Promptly, a web-based tool (React/NodeJS) that presents Problem visuals, accepts student prompts, calls an LLM API, and runs generated code against test cases in a sandbox.
- Deploy Promptly in a large, optional laboratory task within a first-year Python course (n=54) to observe interactions, success rates, and student perceptions.
- Collect quantitative data (average submissions, success counts, prompt word counts) and qualitative reflections to understand learner experiences and perceived benefits/concerns.
- Discuss variations of Prompt Problems, integration into curricula, and avenues for future research.
Experimental results
Research questions
- RQ1RQ1: How do students interact with the Promptly tool in terms of overall success rates and prompt lengths?
- RQ2RQ2: What are students’ perceptions of the Promptly tool and of learning programming through constructing prompts for LLMs?
Key findings
- Promptly was largely well-received and engaged students in computational thinking when solving problems.
- Problem 3 was the most difficult for students, with the highest average submissions (6.4) and fewer solvers (19) compared to Problems 1 (43 solvers) and 2 (32 solvers).
- Average prompt lengths varied by problem, with 13, 38, and 36 words respectively across Problems 1–3.
- The study found benefits in exposing students to new programming constructs and in enhancing their ability to think critically about problem specifications and prompt design.
- Some students expressed resistance or concerns about reliance on AI tools and emphasized the importance of responsible use and maintaining programming independence.
- Reflections highlighted that prompt engineering represents a different form of programming that requires explicit instruction and practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.