首页> 外文会议>IEEE/ACM International Conference on Software Engineering >Do Code Smells Hamper Novice Programming - A Controlled Experiment on Scratch Programs
【24h】

Do Code Smells Hamper Novice Programming - A Controlled Experiment on Scratch Programs

机译:代码闻到妨碍新手编程 - 对划痕程序的受控实验

获取原文
获取外文期刊封面目录资料

摘要

Recently, block-based programming languages like Alice, Scratch and Blockly have become popular tools for programming education. There is substantial research showing that block-based languages are suitable for early programming education. But can block-based programs be smelly too? And does that matter to learners? In this paper we explore the code smells metaphor in the context of block-based programming language Scratch. We conduct a controlled experiment with 61 novice Scratch programmers, in which we divided the novices into three groups. One third receive a non-smelly program, while the other groups receive a program suffering from the Duplication or the Long Method smell respectively. All subjects then perform the same comprehension tasks on their program, after which we measure their time and correctness. The results of the experiment show that code smell indeed influence performance: subjects working on the program exhibiting code smells perform significantly worse, but the smells did not affect the time subjects needed. Investigating different types of tasks in more detail, we find that Long Method mainly decreases system understanding, while Duplication decreases the ease with which subjects modify Scratch programs.
机译:最近,基于块的编程语言如Alice,Scratch和Blodly已成为编程教育的流行工具。存在大量研究,表明基于块的语言适合早期编程教育。但是可以阻止基于块的程序臭味呢?这对学习者来说这么重要吗?在本文中,我们在基于块的编程语言划痕的背景下探索代码闻到隐喻。我们采用61项新手划痕程序员进行受控实验,其中我们将新手分为三组。三分之一收到非臭项计划,而另一组接收患有复制或长方法气味的程序。然后,所有受试者都会在他们的程序上执行相同的理解任务,之后我们测量它们的时间和正确性。实验结果表明,代码闻确实影响了性能:在表现出展示码味的程序上工作的科目显着更糟,但气味不会影响所需的时间受试者。从更详细地调查不同类型的任务,我们发现长时间的方法主要降低系统理解,而重复会减少受试者修改划痕程序的缓解。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号