Worked examples (solutions to typical programming problems presented as a source code in a certain language and are used to explain the topics from a programming class) are among the most popular types of learning content in programming classes. Most approaches and tools for presenting these examples to students are based on line-by-line explanations of the example code. However, instructors rarely have time to provide line-by-line explanations for a large number of examples typically used in a programming class. In this paper, we explore and assess a human-AI collaboration approach to authoring worked examples for Java programming. We introduce an authoring system for creating Java worked examples that generates a starting version of code explanations and presents it to the instructor to edit if necessary. We also present a study that assesses the quality of explanations created with this approach.
翻译:范例(以特定语言源代码形式呈现的典型编程问题解决方案,用于解释编程课程中的知识点)是编程课程中最受欢迎的学习内容类型之一。向学生展示这些范例的大多数方法和工具都基于对示例代码的逐行解释。然而,教师鲜有时间为编程课程中通常使用的大量示例提供逐行解释。本文探索并评估了基于人机协作方法的Java编程范例编写。我们引入了一个Java范例编写系统,该系统能生成代码解释的初始版本,并供教师在必要时进行编辑。我们还开展了一项研究,评估了通过此方法生成的解释质量。