我们到了吗?新手的代码气味与循环构造相关联

C. Izu, Shrey Chandra
{"title":"我们到了吗?新手的代码气味与循环构造相关联","authors":"C. Izu, Shrey Chandra","doi":"10.1145/3478432.3499064","DOIUrl":null,"url":null,"abstract":"Research on novice programmers has focused heavily on identifying errors and misconceptions and helping novices to correct them. In contrast, there is a sparse but growing effort into helping students to evaluate and improve the quality of their code once it is functionally correct. One way to improve quality is to simplify code structure by getting rid of poorly written code patterns, or so called code smells. Although code smells for software developers are well catalogued, novices exhibit a different range of code smells compared to experts. A catalogue of novices' code smells and their transformations will help instructors to discuss code quality issues with their students. Smells related to conditional expressions and conditional statements have been reported both in novice and expert studies. Our poster focuses on lesser-known novice code smells related to iteration from the literature and it also introduces a new iterative pattern, named \"AskFirstOrLast\", and how to refactor it.","PeriodicalId":113773,"journal":{"name":"Proceedings of the 53rd ACM Technical Symposium on Computer Science Education V. 2","volume":"57 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-03-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Are We There Yet? Novices' Code Smells linked to Loop Constructs\",\"authors\":\"C. Izu, Shrey Chandra\",\"doi\":\"10.1145/3478432.3499064\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Research on novice programmers has focused heavily on identifying errors and misconceptions and helping novices to correct them. In contrast, there is a sparse but growing effort into helping students to evaluate and improve the quality of their code once it is functionally correct. One way to improve quality is to simplify code structure by getting rid of poorly written code patterns, or so called code smells. Although code smells for software developers are well catalogued, novices exhibit a different range of code smells compared to experts. A catalogue of novices' code smells and their transformations will help instructors to discuss code quality issues with their students. Smells related to conditional expressions and conditional statements have been reported both in novice and expert studies. Our poster focuses on lesser-known novice code smells related to iteration from the literature and it also introduces a new iterative pattern, named \\\"AskFirstOrLast\\\", and how to refactor it.\",\"PeriodicalId\":113773,\"journal\":{\"name\":\"Proceedings of the 53rd ACM Technical Symposium on Computer Science Education V. 2\",\"volume\":\"57 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-03-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 53rd ACM Technical Symposium on Computer Science Education V. 2\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3478432.3499064\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 53rd ACM Technical Symposium on Computer Science Education V. 2","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3478432.3499064","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

对新手程序员的研究主要集中在识别错误和误解,并帮助新手纠正它们。相比之下,在帮助学生评估和提高代码质量方面,帮助学生在功能正确的情况下进行的努力很少,但却在不断增加。提高质量的一种方法是通过摆脱编写不良的代码模式(或所谓的代码气味)来简化代码结构。尽管对软件开发人员的代码气味进行了很好的分类,但与专家相比,新手表现出不同范围的代码气味。初学者的代码气味及其转换的目录将帮助教师与学生讨论代码质量问题。在新手和专家的研究中都报道了与条件表达式和条件语句相关的气味。我们的海报关注的是文献中鲜为人知的与迭代相关的新手代码气味,它还介绍了一种新的迭代模式,名为“askfirstlast”,以及如何重构它。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Are We There Yet? Novices' Code Smells linked to Loop Constructs
Research on novice programmers has focused heavily on identifying errors and misconceptions and helping novices to correct them. In contrast, there is a sparse but growing effort into helping students to evaluate and improve the quality of their code once it is functionally correct. One way to improve quality is to simplify code structure by getting rid of poorly written code patterns, or so called code smells. Although code smells for software developers are well catalogued, novices exhibit a different range of code smells compared to experts. A catalogue of novices' code smells and their transformations will help instructors to discuss code quality issues with their students. Smells related to conditional expressions and conditional statements have been reported both in novice and expert studies. Our poster focuses on lesser-known novice code smells related to iteration from the literature and it also introduces a new iterative pattern, named "AskFirstOrLast", and how to refactor it.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信