用Code Perfumes认可优质Java代码
Acknowledging Good Java Code with Code Perfumes
AI总结:
针对现有Java编程自动化反馈偏负面的问题,提出类似代码检查的code perfumes技术,通过20种面向初中级学习者的代码特征表彰良好实践,实验证实其与代码质量、学生成绩正相关,可辅助教学反馈。
摘要:
Java仍是教育领域最流行的编程语言之一。尽管Java编程教育有丰富的学习材料支持,但学习者在自己编写代码时遇到的问题仍需要更即时的辅助。当教育者无法亲自提供这类支持时,学习者可以借助linter(代码检查工具)等自动化程序分析工具,获取潜在bug或代码问题的反馈。这类反馈虽具建设性,但仍可能给人被批评的感受。本文提出面向Java的code perfumes(代码香氛),这是一种类似linting(代码检查)的简单程序分析技术,但作用是表彰学习者对良好编程实践的正确运用。我们整理了一份包含20种Java code perfumes的目录,涵盖面向入门到中级学习者的常见Java语言结构。评估结果显示,这些code perfumes在学习者代码中频繁出现,包含更多code perfumes实例的程序往往功能性和可读性更佳。此外,运用更多code perfumes的学生往往成绩更高。因此,code perfumes是认可学习者成就的宝贵工具,也能帮助教师了解学生的学习进展。
英文摘要:
Java remains one of the most popular programming languages in education. Although Java programming education is well supported by study materials, learners also need more immediate support on the problems they face in their own code. When this support cannot be offered by educators personally, learners can resort to automated program analysis tools such as linters, which provide feedback on potential bugs or code issues. This is constructive feedback, but it may nevertheless feel like criticism. This paper introduces code perfumes for Java, a simple program analysis technique similar to linting, but commending the correct application of good programming practices. We present a catalogue of 20 Java code perfumes related to common Java language constructs for beginner to immediate learners. Our evaluation shows that these code perfumes occur frequently in learners' code, and programs with more code perfume instances tend to have better functionality and readability. Moreover, students who incorporate more code perfumes tend to achieve higher grades. Thus, code perfumes serve as a valuable tool to acknowledge learners' successes, and as a means to inform instructors about their learners' progress.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。