Porpoise: An LLM-Based Sandbox for Novices to Practice Writing Purpose Statements

Krishnamurthi, Shriram; Thießen, Thore; Vahrenhold, Jan

Research article in edited proceedings (conference) | Peer reviewed

Abstract

Software developers have long emphasized the need for clear textual descriptions of programs, through documentation and comments. Similarly, curricula often expect students to write purpose statements that articulate in prose what program components are expected to do. Unfortunately, it is difficult to motivate students to do this and to evaluate student work at scale. We leverage the use of a large language model for this purpose. Specifically, we describe a tool, Porpoise, that presents students with problem descriptions, passes their textual descriptions to a large language model to generate code, evaluates the result against tests, and gives students feedback. Essentially, it gives students practice writing quality purpose statements, and simultaneously also getting familiar with zero-shot prompting in a controlled manner. We present the tool’s design as well as the experience of deploying it at two universities. This includes asking students to reflect on trade-offs between programming and zero-shot prompting, and seeing what difference it makes to give students different formats of problem descriptions. We also examine affective and load aspects of using the tool. Our findings are somewhat positive but mixed.

Details about the publication

PublisherHenz, Martin; Hermans, Felienne; Patterson, Daniel
Book titleProceedings of the 2025 ACM SIGPLAN International Symposium on SPLASH-E (SPLASH-E 2025)
Publishing companyACM Press
Place of publicationNew York, NY
Statusaccepted / in press (not yet published)
Release year2025
Language in which the publication is writtenEnglish
ConferenceSPLASH-E 2025 - 2025 ACM SIGPLAN International Symposium on SPLASH-E (SPLASH-E 2025), Singapore, Singapore
DOI10.1145/3758317.3759683
Link to the full texthttps://doi.org/10.1145/3758317.3759683
Keywordspurpose statements; docstrings; large language models; introductory programming; zero-shot prompting

Authors from the University of Münster

Thießen, Thore
Professur für Praktische Informatik (Prof. Vahrenhold)
Vahrenhold, Jan
Professur für Praktische Informatik (Prof. Vahrenhold)