图形化编程在初中程序设计教学中的应用
2018-08-07张静洁裘国永
张静洁 裘国永
摘 要 随着人工智能的日益普及,学习编程的重要性逐渐显露。初中编程教学长期以来使用Visual Basic教学,对于这种文本编程方式,学生在学习过程中容易觉得枯燥乏味,因为对编程的学习只学习语法而不理解编程的逻辑结构。加之Visual Basic这种文本编程方式在编程的过程中程序易出错,容易挫伤中学生的学习积极性。而图形化编程使用图形界面,没有难以理解的代码,取而代之的是图形模块的简单拼接,这就大大降低了编程过程中代码出错的可能性。另外图形化编程简单易学,适合编程基础弱的初中学生,他们可以很容易喜欢上编程。
关键词 图形化编程 程序设计 游戏化教学
中图分类号:G424 文献标识码:A DOI:10.16400/j.cnki.kjdkx.2018.03.050
Graphical Programming Used in the Teaching of Junior High School Program Design
ZHANG Jingjie, QIU Guoyong
(College of Computer Science, Shaanxi Normal University Xi'an Shaanxi 710119)
Abstract With the increasing popularity of artificial intelligence, the importance of learning programming has gradually emerged. Programming teaching in junior middle school has been using Visual Basic for a long time. For this way of text programming, students may feel bored in the learning process, because programming learning only learns grammar, but does not understand the logic structure of programming. In addition, the text programming method of Visual Basic is easy to make mistakes in the process of programming, and it is easy to contuse the learning enthusiasm of middle school students. Graphical programming, using graphical interfaces, has no hard to understand code, instead of simple splicing of graphics modules, which greatly reduces the possibility of code errors in programming. In addition, graphical programming is simple and easy to learn. It is suitable for junior middle school students with weak programming base. They can easily enjoy programming.
Keywords graphic programming; programming design; game teaching
fr
3 图形化编程在初中程序设计课程中的实现
初中学生掌握的程序设计基础比较薄弱,程序设计的思想以及语言对于初中学生来说很抽象,并且缺乏编实践工具对初中学生来说难以在短時间内掌握,加上代码难以理解,学习起来枯燥乏味,长此以往容易打击学生学习编程的信心。[6]另一方面,初中学生对新鲜事物存在一定的好奇心,对未接触过的软件有很大的兴趣。大部分学生对编写程序,设计游戏有浓厚的兴趣,因此图形化编程方式更容易被学生接受,也更容易在初中程序设计课堂上开展。
前期的课程中学生已经对图形化编程平台Code.org有了初步的了解,这个课时主要是学习循环结构的应用,利用重复模块画出不同的图案,前期学生已经对基本模块例如向前移动模块、向左转向右转模块、设置颜色模块的使用以及参数的设定的有了基本的掌握,为下一步循环结构的学习打下来良好的基础。……
