Prompt Problems: A New Programming Exercise for the Generative AI Era

Large Language Models (LLMs) are revolutionizing the field of computing education with their powerful code-generating capabilities. Traditional pedagogical practices have focused on code writing tasks, but there is now a shift in importance towards code reading, comprehension and evaluation of LLM-g...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2023-11
Hauptverfasser: Denny, Paul, Leinonen, Juho, Prather, James, Luxton-Reilly, Andrew, Amarouche, Thezyrie, Becker, Brett A, Reeves, Brent N
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title arXiv.org
container_volume
creator Denny, Paul
Leinonen, Juho
Prather, James
Luxton-Reilly, Andrew
Amarouche, Thezyrie
Becker, Brett A
Reeves, Brent N
description Large Language Models (LLMs) are revolutionizing the field of computing education with their powerful code-generating capabilities. Traditional pedagogical practices have focused on code writing tasks, but there is now a shift in importance towards code reading, comprehension and evaluation of LLM-generated code. Alongside this shift, an important new skill is emerging -- the ability to solve programming tasks by constructing good prompts for code-generating models. In this work we introduce a new type of programming exercise to hone this nascent skill: 'Prompt Problems'. Prompt Problems are designed to help students learn how to write effective prompts for AI code generators. A student solves a Prompt Problem by crafting a natural language prompt which, when provided as input to an LLM, outputs code that successfully solves a specified programming task. We also present a new web-based tool called Promptly which hosts a repository of Prompt Problems and supports the automated evaluation of prompt-generated code. We deploy Promptly for the first time in one CS1 and one CS2 course and describe our experiences, which include student perceptions of this new type of activity and their interactions with the tool. We find that students are enthusiastic about Prompt Problems, and appreciate how the problems engage their computational thinking skills and expose them to new programming constructs. We discuss ideas for the future development of new variations of Prompt Problems, and the need to carefully study their integration into classroom practice.
format Article
fullrecord <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2889478960</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2889478960</sourcerecordid><originalsourceid>FETCH-proquest_journals_28894789603</originalsourceid><addsrcrecordid>eNqNiksKwjAUAIMgWLR3eOC6EJN-UndF4mcjLtyXKK-1pWlqkqrHV8EDuBqGmQkJGOerSMSMzUjoXEspZWnGkoQHRJ6s0YOHDy4dareGAo74_HptldZNX4N8ob02DqEyFvwNYYc9WuWbB0JxAGnVgkwr1TkMf5yT5VaeN_tosOY-ovNla0bbf1LJhMjjTOQp5f9db_cAOd4</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2889478960</pqid></control><display><type>article</type><title>Prompt Problems: A New Programming Exercise for the Generative AI Era</title><source>Free E- Journals</source><creator>Denny, Paul ; Leinonen, Juho ; Prather, James ; Luxton-Reilly, Andrew ; Amarouche, Thezyrie ; Becker, Brett A ; Reeves, Brent N</creator><creatorcontrib>Denny, Paul ; Leinonen, Juho ; Prather, James ; Luxton-Reilly, Andrew ; Amarouche, Thezyrie ; Becker, Brett A ; Reeves, Brent N</creatorcontrib><description>Large Language Models (LLMs) are revolutionizing the field of computing education with their powerful code-generating capabilities. Traditional pedagogical practices have focused on code writing tasks, but there is now a shift in importance towards code reading, comprehension and evaluation of LLM-generated code. Alongside this shift, an important new skill is emerging -- the ability to solve programming tasks by constructing good prompts for code-generating models. In this work we introduce a new type of programming exercise to hone this nascent skill: 'Prompt Problems'. Prompt Problems are designed to help students learn how to write effective prompts for AI code generators. A student solves a Prompt Problem by crafting a natural language prompt which, when provided as input to an LLM, outputs code that successfully solves a specified programming task. We also present a new web-based tool called Promptly which hosts a repository of Prompt Problems and supports the automated evaluation of prompt-generated code. We deploy Promptly for the first time in one CS1 and one CS2 course and describe our experiences, which include student perceptions of this new type of activity and their interactions with the tool. We find that students are enthusiastic about Prompt Problems, and appreciate how the problems engage their computational thinking skills and expose them to new programming constructs. We discuss ideas for the future development of new variations of Prompt Problems, and the need to carefully study their integration into classroom practice.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Generative artificial intelligence ; Large language models ; Programming ; Students</subject><ispartof>arXiv.org, 2023-11</ispartof><rights>2023. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>780,784</link.rule.ids></links><search><creatorcontrib>Denny, Paul</creatorcontrib><creatorcontrib>Leinonen, Juho</creatorcontrib><creatorcontrib>Prather, James</creatorcontrib><creatorcontrib>Luxton-Reilly, Andrew</creatorcontrib><creatorcontrib>Amarouche, Thezyrie</creatorcontrib><creatorcontrib>Becker, Brett A</creatorcontrib><creatorcontrib>Reeves, Brent N</creatorcontrib><title>Prompt Problems: A New Programming Exercise for the Generative AI Era</title><title>arXiv.org</title><description>Large Language Models (LLMs) are revolutionizing the field of computing education with their powerful code-generating capabilities. Traditional pedagogical practices have focused on code writing tasks, but there is now a shift in importance towards code reading, comprehension and evaluation of LLM-generated code. Alongside this shift, an important new skill is emerging -- the ability to solve programming tasks by constructing good prompts for code-generating models. In this work we introduce a new type of programming exercise to hone this nascent skill: 'Prompt Problems'. Prompt Problems are designed to help students learn how to write effective prompts for AI code generators. A student solves a Prompt Problem by crafting a natural language prompt which, when provided as input to an LLM, outputs code that successfully solves a specified programming task. We also present a new web-based tool called Promptly which hosts a repository of Prompt Problems and supports the automated evaluation of prompt-generated code. We deploy Promptly for the first time in one CS1 and one CS2 course and describe our experiences, which include student perceptions of this new type of activity and their interactions with the tool. We find that students are enthusiastic about Prompt Problems, and appreciate how the problems engage their computational thinking skills and expose them to new programming constructs. We discuss ideas for the future development of new variations of Prompt Problems, and the need to carefully study their integration into classroom practice.</description><subject>Generative artificial intelligence</subject><subject>Large language models</subject><subject>Programming</subject><subject>Students</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNiksKwjAUAIMgWLR3eOC6EJN-UndF4mcjLtyXKK-1pWlqkqrHV8EDuBqGmQkJGOerSMSMzUjoXEspZWnGkoQHRJ6s0YOHDy4dareGAo74_HptldZNX4N8ob02DqEyFvwNYYc9WuWbB0JxAGnVgkwr1TkMf5yT5VaeN_tosOY-ovNla0bbf1LJhMjjTOQp5f9db_cAOd4</recordid><startdate>20231110</startdate><enddate>20231110</enddate><creator>Denny, Paul</creator><creator>Leinonen, Juho</creator><creator>Prather, James</creator><creator>Luxton-Reilly, Andrew</creator><creator>Amarouche, Thezyrie</creator><creator>Becker, Brett A</creator><creator>Reeves, Brent N</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20231110</creationdate><title>Prompt Problems: A New Programming Exercise for the Generative AI Era</title><author>Denny, Paul ; Leinonen, Juho ; Prather, James ; Luxton-Reilly, Andrew ; Amarouche, Thezyrie ; Becker, Brett A ; Reeves, Brent N</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_28894789603</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Generative artificial intelligence</topic><topic>Large language models</topic><topic>Programming</topic><topic>Students</topic><toplevel>online_resources</toplevel><creatorcontrib>Denny, Paul</creatorcontrib><creatorcontrib>Leinonen, Juho</creatorcontrib><creatorcontrib>Prather, James</creatorcontrib><creatorcontrib>Luxton-Reilly, Andrew</creatorcontrib><creatorcontrib>Amarouche, Thezyrie</creatorcontrib><creatorcontrib>Becker, Brett A</creatorcontrib><creatorcontrib>Reeves, Brent N</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science &amp; Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Denny, Paul</au><au>Leinonen, Juho</au><au>Prather, James</au><au>Luxton-Reilly, Andrew</au><au>Amarouche, Thezyrie</au><au>Becker, Brett A</au><au>Reeves, Brent N</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Prompt Problems: A New Programming Exercise for the Generative AI Era</atitle><jtitle>arXiv.org</jtitle><date>2023-11-10</date><risdate>2023</risdate><eissn>2331-8422</eissn><abstract>Large Language Models (LLMs) are revolutionizing the field of computing education with their powerful code-generating capabilities. Traditional pedagogical practices have focused on code writing tasks, but there is now a shift in importance towards code reading, comprehension and evaluation of LLM-generated code. Alongside this shift, an important new skill is emerging -- the ability to solve programming tasks by constructing good prompts for code-generating models. In this work we introduce a new type of programming exercise to hone this nascent skill: 'Prompt Problems'. Prompt Problems are designed to help students learn how to write effective prompts for AI code generators. A student solves a Prompt Problem by crafting a natural language prompt which, when provided as input to an LLM, outputs code that successfully solves a specified programming task. We also present a new web-based tool called Promptly which hosts a repository of Prompt Problems and supports the automated evaluation of prompt-generated code. We deploy Promptly for the first time in one CS1 and one CS2 course and describe our experiences, which include student perceptions of this new type of activity and their interactions with the tool. We find that students are enthusiastic about Prompt Problems, and appreciate how the problems engage their computational thinking skills and expose them to new programming constructs. We discuss ideas for the future development of new variations of Prompt Problems, and the need to carefully study their integration into classroom practice.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier EISSN: 2331-8422
ispartof arXiv.org, 2023-11
issn 2331-8422
language eng
recordid cdi_proquest_journals_2889478960
source Free E- Journals
subjects Generative artificial intelligence
Large language models
Programming
Students
title Prompt Problems: A New Programming Exercise for the Generative AI Era
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-03T05%3A34%3A05IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Prompt%20Problems:%20A%20New%20Programming%20Exercise%20for%20the%20Generative%20AI%20Era&rft.jtitle=arXiv.org&rft.au=Denny,%20Paul&rft.date=2023-11-10&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2889478960%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2889478960&rft_id=info:pmid/&rfr_iscdi=true