arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.30547cs.CY
收藏

教授基于提示的编程与LLMs:面向最终用户程序员的45分钟指导实践课程

Teaching Prompt-Based Programming with LLMs: A 45-Minute Lesson with Guided Practice for End-User Programmers

North Carolina State University(北卡罗来纳州立大学)

Keith Tran, Samiha Marwan, Thomas Price

AI总结:

本研究评估了一项45分钟的提示式编程干预课程,通过指导实践提升工程专业学生向LLMs表达计算目标的能力,实验组在提示自我效能上显著提升。

摘要:

基于提示的编程是一种由大型语言模型(LLMs)实现的新模式,允许用户通过自然语言而非传统代码表达计算目标。虽然这种方法降低了入门门槛,尤其是对非计算机科学学习者,但并未消除对基础计算机科学技能的需求。学习者常常难以向LLMs清晰传达意图,导致提示模糊或不够具体。先前的研究记录了计算机科学和非计算机科学学习者都需要明确的提示指导。然而,这种指导如何融入繁忙的课堂,以及需要多少时间才能产生有意义的提升,仍不清楚。在本文中,我们评估了一项45分钟的提示式编程干预课程,包括指导实践,与同等时长的常规计算机科学实验活动(代码追踪)进行对比,后者代表没有提示重点指导的课堂。我们对55名工程专业学生进行了一项随机对照研究。我们发现,实验组学生从前测到后测的平均进步(尽管不显著)高于对照组(+10.8个百分点对比+1.1个百分点),并且在提示自我效能方面的平均提升显著更大(+35.4个百分点对比+21.9个百分点)。我们的结果表明,短暂的干预很可能提高学习者向LLMs指定计算目标的能力。然而,效果较为温和,表明提示技能可能需要更多时间和练习来培养。我们提供了一个轻量级课程,无需先前的计算机科学背景,可以轻松嵌入现有课程。

英文摘要:

Prompt-based programming, a new modality enabled by large language models (LLMs), allows users to express computational goals through natural language rather than traditional code. While this approach lowers barriers to entry, especially for non-CS learners, it does not eliminate the need for foundational CS skills. Learners often struggle to communicate their intent clearly to LLMs, resulting in vague or underspecified prompts. Prior work has documented the need for explicit prompting for both CS and non-CS learners. However, it remains less clear how such instruction can fit into busy classrooms or how much time is needed to produce meaningful gains. In this paper, we evaluated a 45-minute prompt-based programming intervention, consisting of a lesson with guided practice, against a business-as-usual CS lab activity (code tracing) of equal length, representing a class without prompt-focused instruction. We conducted a randomized controlled study with 55 engineering students. We found that students in the experimental condition improved more on average (though not significantly more) from pre- to post-test than the control group (+10.8 vs +1.1 percentage points) and showed significantly greater average gains in prompting self-efficacy (+35.4 vs +21.9 percentage points). Our results suggest it is likely that a brief intervention can improve learners' ability to specify computational goals to LLMs. However, the effect was modest, suggesting that prompting skills may require more time and practice to develop. We provide a lightweight lesson that requires no prior CS background and can be readily dropped into existing courses.

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

↑