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

检测在线课程编程任务预编写模板中的代码质量问题

Detecting Code Quality Issues in Pre-written Templates of Programming Tasks in Online Courses

Anastasiia Birillo, Elizaveta Artser, Yaroslav Golubev, Maria Tigina, Hieke Keuning, Nikolay Vyahhi, Timofey Bryksin

AI总结:

本文提出一种通过分析学生解决方案中反复未修复问题并匹配模板代码来检测编程任务模板质量缺陷的算法,在 JetBrains Academy 的415个 Java 任务上验证了其有效性并推动修复51个问题。

摘要:

在本工作中,我们开发了一种用于检测在线编程任务模板中代码质量问题的算法,对其进行了验证,并在学生解决方案数据集上开展了一项实证研究。该算法包括分析不同学生解决方案中反复出现且未修复的问题,将这些问题与模板代码进行匹配,然后对结果进行过滤。我们在任务子集上的人工验证显示,精确率为80.8%,召回率为73.3%。我们将该算法应用于来自 JetBrains Academy 平台的415个 Java 任务,发现多达14.7%的任务在其模板中至少存在一个问题,从而使学生更难学习良好的代码质量实践。我们详细描述了结果,给出了若干具有启发性的示例和具体案例,并分享了平台开发者的反馈:他们根据我们方法的输出修复了51个问题。

英文摘要:

In this work, we developed an algorithm for detecting code quality issues in the templates of online programming tasks, validated it, and conducted an empirical study on the dataset of student solutions. The algorithm consists of analyzing recurring unfixed issues in solutions of different students, matching them with the code of the template, and then filtering the results. Our manual validation on a subset of tasks demonstrated a precision of 80.8% and a recall of 73.3%. We used the algorithm on 415 Java tasks from the JetBrains Academy platform and discovered that as much as 14.7% of tasks have at least one issue in their template, thus making it harder for students to learn good code quality practices. We describe our results in detail, provide several motivating examples and specific cases, and share the feedback of the developers of the platform, who fixed 51 issues based on the output of our approach.

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

↑