[Paper Review] Prompts First, Finally
This paper argues for a 'Prompts First' approach in computer science education, proposing that generative AI enables natural language to become the primary abstraction layer for programming. By teaching students to express computational problems in precise natural language prompts, educators can shift focus from syntax to problem-solving, leveraging LLMs to democratize access and enhance learning while addressing challenges like hallucination and over-reliance through deliberate pedagogy in vocabulary and debugging.
Generative AI (GenAI) and large language models in particular, are disrupting Computer Science Education. They are proving increasingly capable at more and more challenges. Some educators argue that they pose a serious threat to computing education, and that we should ban their use in the classroom. While there are serious GenAI issues that remain unsolved, it may be useful in the present moment to step back and examine the overall trajectory of Computer Science writ large. Since the very beginning, our discipline has sought to increase the level of abstraction in each new representation. We have progressed from hardware dip switches, through special purpose languages and visual representations like flow charts, all the way now to ``natural language.'' With the advent of GenAI, students can finally change the abstraction level of a problem to the ``language'' they've been ``problem solving'' with all their lives. In this paper, we argue that our programming abstractions were always headed here -- to natural language. Now is the time to adopt a ``Prompts First'' approach to Computer Science Education.
Motivation & Objective
- To reframe computer science education by positioning natural language as the next evolution in programming abstraction, following historical trends from machine code to high-level languages.
- To address growing concerns in computing education about the disruptive impact of generative AI, proposing a pedagogical shift rather than resistance.
- To argue that large language models (LLMs) have reached a maturity level where they can serve as a valid, high-level programming interface, comparable to past abstractions like 'objects'.
- To advocate for teaching prompt engineering as a foundational skill in CS1 courses, enabling students to focus on problem logic rather than syntactic correctness.
- To mitigate risks of over-reliance and hallucination by emphasizing precise vocabulary and debugging techniques in AI-assisted programming.
Proposed method
- Proposes a 'Prompts First' pedagogical model where introductory programming courses begin with natural language specification of problems, using LLMs to generate code.
- Draws parallels between the historical adoption of 'Objects First' and the current potential for 'Prompts First', framing LLMs as the next valid abstraction layer.
- Emphasizes the development of a precise technical vocabulary (e.g., mapping, filtering, piping) to improve clarity and reduce ambiguity in prompt-based programming.
- Advocates for integrating debugging practices that treat LLM outputs as hypotheses to be tested and validated, not as final code.
- Recommends using LLMs not just for code generation but also for creating educational resources like explanations and feedback, enhancing learning outcomes.
- Encourages educators to reframe assessment to value problem-solving and specification clarity over syntactic correctness, aligning with the goal of higher-level abstraction.
Experimental results
Research questions
- RQ1How can generative AI be leveraged to raise the abstraction level in introductory computer science education?
- RQ2What are the implications of using natural language prompts as the primary interface for programming, and how does this compare to traditional language-based approaches?
- RQ3At what point in the curriculum should prompt-based programming be introduced, and how can it coexist with foundational programming concepts?
- RQ4How can educators mitigate the risks of over-reliance and hallucination when students use LLMs to generate code?
- RQ5What role should precise technical vocabulary and debugging skills play in a prompt-centric programming curriculum?
Key findings
- Generative AI models like Codex and GPT-4 have demonstrated performance comparable to or exceeding that of novice CS students on standard CS1 problems, indicating their readiness for educational integration.
- LLM-generated code explanations and educational resources have been shown to effectively support student learning, improving comprehension and retention.
- Students who rely excessively on AI may develop an 'illusion of competence', suggesting the need for deliberate pedagogical strategies to ensure deep understanding.
- The non-deterministic nature of LLMs necessitates stronger emphasis on debugging and critical evaluation of AI outputs, treating them as suggestions rather than authoritative code.
- A well-defined technical vocabulary—such as 'mapping', 'filtering', and 'exception handling'—is essential for reducing ambiguity and improving communication in prompt-based programming.
- The historical trajectory of computing shows a consistent move toward higher abstraction, and natural language via LLMs represents the next logical step in this evolution, aligning with Halpern’s 1966 vision of natural programming language.
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.