Integrating Natural Language Prompting Tasks in Introductory Programming Courses

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kerslake, Chris, Denny, Paul, Smith IV, David H, Prather, James, Leinonen, Juho, Luxton-Reilly, Andrew, MacNeil, Stephen
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914964238761984
author Kerslake, Chris
Denny, Paul
Smith IV, David H
Prather, James
Leinonen, Juho
Luxton-Reilly, Andrew
MacNeil, Stephen
author_facet Kerslake, Chris
Denny, Paul
Smith IV, David H
Prather, James
Leinonen, Juho
Luxton-Reilly, Andrew
MacNeil, Stephen
contents Introductory programming courses often emphasize mastering syntax and basic constructs before progressing to more complex and interesting programs. This bottom-up approach can be frustrating for novices, shifting the focus away from problem solving and potentially making computing less appealing to a broad range of students. The rise of generative AI for code production could partially address these issues by fostering new skills via interaction with AI models, including constructing high-level prompts and evaluating code that is automatically generated. In this experience report, we explore the inclusion of two prompt-focused activities in an introductory course, implemented across four labs in a six-week module. The first requires students to solve computational problems by writing natural language prompts, emphasizing problem-solving over syntax. The second involves students crafting prompts to generate code equivalent to provided fragments, to foster an understanding of the relationship between prompts and code. Most of the students in the course had reported finding programming difficult to learn, often citing frustrations with syntax and debugging. We found that self-reported difficulty with learning programming had a strong inverse relationship with performance on traditional programming assessments such as tests and projects, as expected. However, performance on the natural language tasks was less strongly related to self-reported difficulty, suggesting they may target different skills. Learning how to communicate with AI coding models is becoming an important skill, and natural language prompting tasks may appeal to a broad range of students.
format Preprint
id arxiv_https___arxiv_org_abs_2410_03063
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Integrating Natural Language Prompting Tasks in Introductory Programming Courses
Kerslake, Chris
Denny, Paul
Smith IV, David H
Prather, James
Leinonen, Juho
Luxton-Reilly, Andrew
MacNeil, Stephen
Computers and Society
Artificial Intelligence
Introductory programming courses often emphasize mastering syntax and basic constructs before progressing to more complex and interesting programs. This bottom-up approach can be frustrating for novices, shifting the focus away from problem solving and potentially making computing less appealing to a broad range of students. The rise of generative AI for code production could partially address these issues by fostering new skills via interaction with AI models, including constructing high-level prompts and evaluating code that is automatically generated. In this experience report, we explore the inclusion of two prompt-focused activities in an introductory course, implemented across four labs in a six-week module. The first requires students to solve computational problems by writing natural language prompts, emphasizing problem-solving over syntax. The second involves students crafting prompts to generate code equivalent to provided fragments, to foster an understanding of the relationship between prompts and code. Most of the students in the course had reported finding programming difficult to learn, often citing frustrations with syntax and debugging. We found that self-reported difficulty with learning programming had a strong inverse relationship with performance on traditional programming assessments such as tests and projects, as expected. However, performance on the natural language tasks was less strongly related to self-reported difficulty, suggesting they may target different skills. Learning how to communicate with AI coding models is becoming an important skill, and natural language prompting tasks may appeal to a broad range of students.
title Integrating Natural Language Prompting Tasks in Introductory Programming Courses
topic Computers and Society
Artificial Intelligence
url https://arxiv.org/abs/2410.03063