Automatic detection of bad programming habits in scratch: A preliminary study
Automatic detection of bad programming habits in scratch: A preliminary study
复制标题
自动检测从头开始的不良编程习惯:初步研究
DOI:
--
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
G. Robles
中科院分区:
文献类型:
--
作者:
J. Moreno;G. Robles
Using the Scratch environment as a tool to teach programming skills or develop computational thinking is increasingly common in all levels of education, well-documented case studies from primary school to university can be found. However, there are reports that indicate that students learning to program in this environment show certain habits that are contrary to the basic programming recommendations. In our work as instructors with high school students, we have detected these and other bad practices, such as the repetition of code and object naming, on a regular basis. This paper focuses on verifying whether these issues can generally be found in the Scratch community, by analyzing a large number of projects available on the Scratch community website. To test this hypothesis, we downloaded 100 projects and analyzed them with two plug-ins we developed to automatically detect these bad practices. The plug-ins extend the functionality of the Hairball tool, a static code analyzer for Scratch projects. The results obtained show that, in general, projects in the repository also incur in the investigated malpractices. Along with suggestions for future work, some ideas that might assist to address such situations are proposed in the conclusions of the paper.