用自然语言提示任务让编程初学者更关注问题解决而非语法细节。
Integrating Natural Language Prompting Tasks in Introductory Programming Courses
- 通过写自然语言提示解决问题,弱化语法学习负担。
- 学生在提示任务中的表现与自我感觉难易度关联较弱。
- 适合想避开传统语法困境的编程初学者。
入门级编程课程通常先强调语法和基础结构,这种自下而上的方法可能让新手感到挫败,使注意力偏离问题求解,降低对计算机科学的兴趣。生成式AI代码模型的发展为缓解这一问题提供了新路径,通过与AI互动培养高阶技能,如构建高层提示、评估自动生成的代码。本文报告了在六周模块中开展的两项以提示为核心的活动,覆盖四次实验课。第一项要求学生通过撰写自然语言提示解决计算问题,突出问题求解而非语法;第二项让学生设计提示生成与给定代码片段等效的程序,帮助理解提示与代码间的关联。课程中多数学生曾表示编程难学,主要因语法和调试困扰。我们发现,自我感知学习难度与传统编程考核(测试和项目)成绩呈强负相关,符合预期。但自然语言任务表现与自我感知难度的相关性较弱,表明其考察的可能是不同能力。掌握与AI编码模型沟通的能力正日益重要,自然语言提示任务或能吸引更广泛的学生群体。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。