Readable vs. Writable Code: A Survey of Intermediate Students' Structure Choices

Readable vs. Writable Code: A Survey of Intermediate Students' Structure Choices
复制标题

可读与可写代码:中级学生结构选择的调查

DOI:
10.1145/3478431.3499413
复制
发表时间:
2022
期刊:
SIGCSE 2022: Proceedings of the 53rd ACM Technical Symposium on Computer Science Education
影响因子:
--
通讯作者:
Pyper, Jordan
Pyper, Jordan
中科院分区:
--
文献类型:
--
作者:
Wiese, Eliane;Rafferty, Anna N.;Pyper, Jordan

文献摘要

参考文献

被引文献

相似文献

既然中级CS学生可以使用各种控制结构,为什么他们的选择往往与专家的选择不匹配,学生可能没有意识到专家更喜欢什么选择,发现非专家的选择更容易阅读,或者干脆忘记了用专家结构写作。为了理清这些解释,我们对328名二、三年级本科生进行了调查,任务包括写简短的函数,选择哪种结构最易读或风格最好,以及理解问题。问题集中在对教师很重要的七个控制结构主题上(例如,分解if-块和它的Else之间的重复代码)。学生经常使用非专家结构写作,对于五个主题,至少有1/3的学生(48%-71%)认为非专家结构比专家结构更具可读性。然而,学生通常在编写代码时做出一种选择,但在阅读代码时倾向于另一种选择。此外,对于更复杂的主题,学生往往没有注意到(或理解)结构变化造成的执行上的差异。综上所述,这些结果表明,选择控制结构的指导和实践应该是特定于上下文的,只关注代码编写的评估可能会遗漏潜在的误解。
Since intermediate CS students can use a variety of control struc- tures, why do their choices often not match experts' Students may not realize what choices expert prefer, find non-expert choices easier to read, or simply forget to write with expert structure. To disentangle these explanations, we surveyed 328 2nd and 3rd se- mester undergraduates, with tasks including writing short func- tions, selecting which structure was most readable or best styled, and comprehension questions. Questions focused on seven control structure topics that were important to instructors (e.g., factoring out repeated code between an if-block and its else). Students frequently wrote with non-expert structure, and, for five topics, at least 1/3 of students (48% - 71%) thought a non-expert struc- ture was more readable than the expert one. However, students often made one choice when writing code, but preferred a different choice when reading it. Additionally, for more complex topics, stu- dents often failed to notice (or understand) differences in execution caused by changes in structure. Together, these results suggest that instruction and practice for choosing control structures should be context-specific, and that assessment focused only on code writing may miss underlying misunderstandings.
DOI: --
发表时间: 2011
期刊: IFAC Symposium on Advances in Control Education
影响因子: --
作者:
Jacqueline L. Whalley;T. Clear;Phil Robbins;Errol Thompson
通讯作者: Errol Thompson
DOI: 10.1109/tse.1984.5010283
发表时间: 1984-09
影响因子: 7.4
作者:
E. Soloway;Kate Ehrlich
通讯作者: E. Soloway;Kate Ehrlich
第 20 届澳大利亚计算机教育会议论文集
DOI: --
发表时间: 2018
期刊: IFAC Symposium on Advances in Control Education
影响因子: --
作者:
A. Ellis
通讯作者: A. Ellis
将新手的代码可读性、结构和理解联系起来:很复杂
DOI: --
发表时间: 2019
期刊: 2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering Education and Training (ICSE-SEET)
影响因子: --
作者:
E. Wiese;Anna N. Rafferty;A. Fox
通讯作者: A. Fox
通过分析学生代码了解语义风格
DOI: --
发表时间: 2018
期刊: IFAC Symposium on Advances in Control Education
影响因子: --
作者:
G. D. Ruvo;E. Tempero;Andrew Luxton;G. Rowe;Nasser Giacaman
通讯作者: Nasser Giacaman