Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems using Natural LanguageCCIn-PersonGlobal
GitHub Copilot is an artificial intelligence model for automatically generating source code from natural language problem descriptions. Since June 2022, Copilot has officially been available for free to all students as a plug-in to development environments like Visual Studio Code. Prior work exploring OpenAI Codex, the underlying model that powers Copilot, has shown it performs well on typical CS1 problems thus raising concerns about the impact it will have on how introductory programming courses are taught. However, little is known about the types of problems for which Copilot does not perform well, or about the natural language interactions that a student might have with Copilot when resolving errors. We explore these questions by evaluating the performance of Copilot on a publicly available dataset of 166 programming problems. We find that it successfully solves around half of these problems on its very first attempt, and that it solves 60% of the remaining problems using only natural language changes to the problem description. We argue that this type of prompt engineering, which we believe will become a standard interaction between human and Copilot when it initially fails, is a potentially useful learning activity that promotes computational thinking skills, and is likely to change the nature of code writing skill development.
Sat 18 MarDisplayed time zone: Eastern Time (US & Canada) change
08:30 - 09:45 | |||
08:30 25mPaper | Alumni as Teachers and Mentors for CS 1 Students: Solving the Staffing Shortage and Students' Reflections about Career and College AdviceCCIn-Person Papers Tammy Vandegrift University of Portland DOI | ||
08:55 25mPaper | Storyteller: Guiding Students Through Code ExamplesCCIn-Person Papers Mark Mahoney Carthage College DOI | ||
09:20 25mPaper | Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems using Natural LanguageCCIn-PersonGlobal Papers Paul Denny The University of Auckland, Viraj Kumar Indian Institute of Science, Nasser Giacaman The University of Auckland DOI |