LitterBox:一种用于Scratch程序的Linter
LitterBox: A Linter for Scratch Programs
摘要:
使用基于块的程序设计语言(如Scratch)创建程序既简单又有趣。然而,基于块的程序可能包含错误,特别是当学习者对编程有误解时。即使没有,Scratch代码通常质量很低,并且包含代码气味,进一步抑制了理解,重用和乐趣。为了解决这个问题,在本文中,我们介绍了LitterBox,一个用于Scratch程序的Linter。给定一个程序或其公共项目ID,LitterBox会根据已知错误和代码气味的模式检查程序。对于每一个发现的问题,LitterBox不仅提供了代码中的位置,还提供了潜在原因和可能的误解的有用解释。学习者可以通过一个易于使用的Web界面访问LitterBox,其中包含有关块代码中错误的可视信息,而对于研究人员来说,LitterBox为Scratch程序的静态分析提供了一个通用的,开源的和可扩展的框架。
英文摘要:
Creating programs with block-based programming languages like Scratch is easy and fun. Block-based programs can nevertheless contain bugs, in particular when learners have misconceptions about programming. Even when they do not, Scratch code is often of low quality and contains code smells, further inhibiting understanding, reuse, and fun. To address this problem, in this paper we introduce LitterBox, a linter for Scratch programs. Given a program or its public project ID, LitterBox checks the program against patterns of known bugs and code smells. For each issue identified, LitterBox provides not only the location in the code, but also a helpful explanation of the underlying reason and possible misconceptions. Learners can access LitterBox through an easy to use web interface with visual information about the errors in the block-code, while for researchers LitterBox provides a general, open source, and extensible framework for static analysis of Scratch programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。