CS1学生编写的C和Python反模式目录
Catalogs of C and Python Antipatterns by CS1 Students
摘要:
理解学生的编程误解是至关重要的。这样做取决于确定学生在学习新的程序设计语言时出错的原因。了解这些错误概念有助于学生对错误的反思,也有助于教师设计更好的教学策略。在这份技术报告中,我们提出了两种程序设计语言的反模式目录:C和Python。为了实现这一点,我们分析了166 CS1工程专业学生的代码时,他们的编码解决方案的编程练习。在我们的结果中,我们从C和Python中的95个错误概念中分类了41个CS1反模式。这些反模式分为三个类别:C、Python和在使用这两种程序设计语言的代码中发现的反模式。对于每个反模式,我们提供了代码示例、学生的解决方案(如果有的话)、避免反模式的可能解决方案以及其他信息。
英文摘要:
Understanding students' programming misconceptions is critical. Doing so depends on identifying the reasons why students make errors when learning a new programming language. Knowing the misconceptions can help students to improve their reflection about their mistakes and also help instructors to design better teaching strategies. In this technical report, we propose catalogs of antipatterns for two programming languages: C and Python. To accomplish this, we analyzed the codes of 166 CS1 engineering students when they were coding solutions to programming exercises. In our results, we catalog 41 CS1 antipatterns from 95 cataloged misconceptions in C and Python. These antipatterns were separated into three catalogs: C, Python, and antipatterns found in code using both programming languages. For each antipattern, we present code examples, students' solutions (if they are present), a possible solution to avoid the antipattern, among other information.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。