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工作示例的创作系统,该系统可生成代码解释的初始版本,并将其呈现给教师以便在必要时进行修改。同时,我们通过一项研究评估了该方法所创建解释的质量。