跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2401.01011 (cs)
[提交于 2024年3月11日]

标题:Fixing Your Own Smells: Adding a Mistake-Based Familiarisation Step When Teaching Code Refactoring

作者:Ivan Tan, Christopher M. Poskitt
查看论文《Fixing Your Own Smells: Adding a Mistake-Based Familiarisation Step When Teaching Code Refactoring》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Programming problems can be solved in a multitude of functionally correct ways, but the quality of these solutions (e.g. readability, maintainability) can vary immensely. When code quality is poor, symptoms emerge in the form of 'code smells', which are specific negative characteristics (e.g. duplicate code) that can be resolved by applying refactoring patterns. Many undergraduate computing curricula train students on this software engineering practice, often doing so via exercises on unfamiliar instructor-provided code. Our observation, however, is that this makes it harder for novices to internalise refactoring as part of their own development practices. In this paper, we propose a new approach to teaching refactoring, in which students must first complete a programming exercise constrained to ensure they will produce a code smell. This simple intervention is based on the idea that learning refactoring is easier if students are familiar with the code (having built it), that it brings refactoring closer to their regular development practice, and that it presents a powerful opportunity to learn from a 'mistake'. We designed and conducted a study with 35 novice undergraduates in which they completed various refactoring exercises alternately taught using a traditional and our 'mistake-based' approach, finding that students were significantly more effective and confident at completing exercises using the latter.
评论: Accepted by the 55th ACM Technical Symposium on Computer Science Education (SIGCSE'24)
主题: 软件工程 (cs.SE)
引用方式: arXiv:2401.01011 [cs.SE]
  (或者 arXiv:2401.01011v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2401.01011
期刊参考: Proc. SIGCSE'24, pages 1307-1313. ACM, 2024
相关 DOI: https://doi.org/10.1145/3626252.3630856

提交历史

来自:Christopher M. Poskitt
[v1] 2024年3月11日 星期一 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-03
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站