arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03063cs.CYcs.AI
收藏

在入门编程课程中整合自然语言提示任务

Integrating Natural Language Prompting Tasks in Introductory Programming Courses

Simon Fraser University(西蒙菲莎大学);University of Auckland(奥克兰大学);University of Illinois(伊利诺伊大学);Abilene Christian University(阿比林基督教大学);Aalto University(阿尔托大学);Temple University(天普大学)

Chris Kerslake, Paul Denny, David H Smith, James Prather, Juho Leinonen, Andrew Luxton-Reilly, Stephen MacNeil

AI总结:

本文通过在入门编程课程中引入自然语言提示任务,探索利用生成式AI培养学生的问题解决能力和提示构建能力,发现这类任务可能评估不同于传统编程的技能,并有助于吸引更广泛的学生。

摘要:

入门编程课程通常强调先掌握语法和基本结构,然后再进入更复杂、更有趣的程序。这种自下而上的方法可能让初学者感到挫败,使重点偏离问题解决,并可能降低计算对广泛学生群体的吸引力。用于代码生成的生成式人工智能的兴起,可以通过与AI模型交互来培养新技能,从而部分解决这些问题,这些技能包括构建高层次提示和评估自动生成的代码。在这份经验报告中,我们探索了在一门入门课程中纳入两项以提示为中心的活动,这些活动在为期六周的模块中通过四个实验实施。第一项活动要求学生通过编写自然语言提示来解决计算问题,强调问题解决而非语法。第二项活动涉及学生构建提示以生成与所提供代码片段等价的代码,从而培养对提示与代码之间关系的理解。该课程中的大多数学生报告称发现编程难以学习,通常提到对语法和调试感到挫败。我们发现,正如预期的那样,自我报告的学习编程难度与传统编程评估(如测试和项目)的表现之间存在强烈的负相关关系。然而,自然语言任务上的表现与自我报告的难度之间的关系较弱,这表明它们可能针对不同的技能。学习如何与AI编码模型交流正在成为一项重要技能,而自然语言提示任务可能吸引广泛的学生群体。

英文摘要:

Introductory programming courses often emphasize mastering syntax and basic constructs before progressing to more complex and interesting programs. This bottom-up approach can be frustrating for novices, shifting the focus away from problem solving and potentially making computing less appealing to a broad range of students. The rise of generative AI for code production could partially address these issues by fostering new skills via interaction with AI models, including constructing high-level prompts and evaluating code that is automatically generated. In this experience report, we explore the inclusion of two prompt-focused activities in an introductory course, implemented across four labs in a six-week module. The first requires students to solve computational problems by writing natural language prompts, emphasizing problem-solving over syntax. The second involves students crafting prompts to generate code equivalent to provided fragments, to foster an understanding of the relationship between prompts and code. Most of the students in the course had reported finding programming difficult to learn, often citing frustrations with syntax and debugging. We found that self-reported difficulty with learning programming had a strong inverse relationship with performance on traditional programming assessments such as tests and projects, as expected. However, performance on the natural language tasks was less strongly related to self-reported difficulty, suggesting they may target different skills. Learning how to communicate with AI coding models is becoming an important skill, and natural language prompting tasks may appeal to a broad range of students.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑