How Teachers Would Help Students to Improve Their Code

How Teachers Would Help Students to Improve Their Code
复制标题

教师如何帮助学生改进代码

DOI:
--
复制
发表时间:
2019
期刊:
Annual Conference on Innovation and Technology in Computer Science Education
影响因子:
--
通讯作者:
J. Jeuring
J. Jeuring
中科院分区:
--
文献类型:
--
作者:
H. Keuning;B. Heeren;J. Jeuring

文献摘要

被引文献

相似文献

在程序设计教育的实践和研究中,代码质量受到的关注一直低于程序正确性。编写质量差的代码可能是粗心的标志,或者没有完全理解编程概念和语言结构。教师在解决质量问题和鼓励学生尽早编写更好的代码方面发挥着重要作用。在本文中,我们将探讨教师在多大程度上解决他们的教学中的代码质量,他们观察到的代码质量问题,以及他们将如何帮助新手提高他们的代码。我们向30位经验丰富的教师展示了低质量的学生代码,并询问他们会给出哪些提示,以及学生应该如何逐步改进代码。我们将这些提示与专业代码质量工具的输出进行比较。尽管大多数老师在降低算法复杂性和消除混乱方面给出了类似的提示,但他们在其他主题上给出了不同的提示子集。我们发现他们在代码中解决问题的方式有很大的不同。我们注意到,专业的代码质量工具并没有指出教师提到的算法复杂性主题。最后,我们给出了一些关于如何进行代码改进的一般指导方针。
Code quality has been receiving less attention than program correctness in both the practice of and research into programming education. Writing poor quality code might be a sign of carelessness, or not fully understanding programming concepts and language constructs. Teachers play an important role in addressing quality issues, and encouraging students to write better code as early as possible. In this paper we explore to what extent teachers address code quality in their teaching, which code quality issues they observe and how they would help novices to improve their code. We presented student code of low quality to 30 experienced teachers and asked them which hints they would give and how the student should improve the code step by step. We compare these hints to the output of professional code quality tools. Although most teachers gave similar hints on reducing the algorithmic complexity and removing clutter, they gave varying subsets of hints on other topics. We found a large variety in how they would solve issues in code. We noticed that professional code quality tools do not point out the algorithmic complexity topics that teachers mention. Finally, we give some general guidelines on how to approach code improvement.