arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.11230cs.SE
收藏

教授结构良好的代码:教学方法的文献综述

Teaching Well-Structured Code: A Literature Review of Instructional Approaches

Sara Nurollahian, Hieke Keuning, Eliane Wiese

AI总结:

本综述系统梳理了53篇代码结构教学研究,将其分为工具、教材和课程整合三类,指出多数方法依赖分析器但有效性评估不足,呼吁加强实证研究以验证教学干预的长期效果。

摘要:

培养未来的软件工程师编写具有良好风格和结构的高质量代码至关重要。本系统性文献综述识别了现有的教学方法、其目标以及用于衡量其有效性的策略。基于一项关于教育中代码质量的现有映射研究,我们确定了53篇关于代码结构教学的论文。我们将这些研究分为三类:(1)专注于开发或评估自动化工具及其使用的研究(例如,代码分析器、导师和重构工具),(2)讨论其他教学材料的研究,如学习资源(例如,重构课程和活动)、评分标准和违规目录,以及(3)讨论如何通过整体课程设计方法将代码结构融入课程以支持代码质量的研究。虽然大多数方法使用分析器向学生指出其代码中的问题,但将这些工具融入课堂并非易事。结合对课堂中代码结构教学的进一步研究,我们呼吁进行更多关于有效性的研究。超过40%的教学研究没有评估。许多研究通过展示学生表现的改善(例如,与未使用干预措施编写的代码相比,使用干预措施时学生代码中的违规行为减少)来证明其干预措施的前景。这些干预措施值得进一步研究学习效果,以观察学生在移除教学支持后如何应用所学知识。

英文摘要:

Teaching the software engineers of the future to write high-quality code with good style and structure is important. This systematic literature review identifies existing instructional approaches, their objectives, and the strategies used for measuring their effectiveness. Building on an existing mapping study of code quality in education, we identified 53 papers on code structure instruction. We classified these studies into three categories: (1) studies focused on developing or evaluating automated tools and their usage (e.g., code analyzers, tutors, and refactoring tools), (2) studies discussing other instructional materials, such as learning resources (e.g., refactoring lessons and activities), rubrics, and catalogs of violations, and (3) studies discussing how to integrate code structure into the curriculum through a holistic approach to course design to support code quality. While most approaches use analyzers that point students to problems in their code, incorporating these tools into classrooms is not straightforward. Combined with further research on code structure instruction in the classroom, we call for more studies on effectiveness. Over 40% of instructional studies had no evaluation. Many studies show promise for their interventions by demonstrating improvement in student performance (e.g., reduced violations in student code when using the intervention compared with code that was written without access to the intervention). These interventions warrant further investigation on learning, to see how students apply their knowledge after the instructional supports are removed.

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

↑