arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.05125cs.CY
收藏

用Elm向K-8学生介绍代数思想

Using Elm to Introduce Algebraic Thinking to K-8 Students

Curtis d'Alves, Tanya Bouman, Christopher Schankula, Jenell Hogg, Levin Noronha, Emily Horsman, Rumsha Siddiqui, Christopher Kumar Anand

摘要:

近年来,为K-8学生开发计算机科学课程的兴趣越来越大。然而,在许多领域创建和部署计算机科学课程存在重大障碍,包括教师时间和其他21世纪技能的优先级。在麦克马斯特大学,我们开发了一般的计算机扫盲活动和具体的编程活动。这些活动的整合变得容易,因为它们都支持现有的课程目标。在本文中,我们专注于在功能语言Elm和图形库GraphicSVG编程。Elm属于ML(Meta Language)家族,具有精简的语法和易于包含的领域特定语言。这允许孩子们开始尝试使用GraphicSVG作为描述形状的语言,并随着他们的成熟而学习核心Elm语言。老师看到孩子们在第一个小时内将计算机图形学和数学联系起来。图形以声明方式定义,并支持聚合和转换,即,代数变量最初是不需要的,但作为一个节省时间的功能被引入,它立即被接受。由于变量是声明性的,它们符合学生的期望。高级学生也通过制作对用户点击或点击做出反应的程序来接触State。这样做所需的语法紧密遵循理论概念,使其易于掌握。对于这些概念中的每一个,我们都解释了它们如何融入我们向学生所做的演示,比如2016年教的5200名儿童。最后,我们描述了正在进行的工作,基于触摸的Elm编辑器的iPad,其功能(1)类型突出显示(相对于语法突出显示),(2)保存正确的语法和类型转换,(3)上下文信息(例如,显示GraphicSVG函数的参数名称),(4)即时反馈(例如,在每次程序更改后重新启动动画)。

英文摘要:

In recent years, there has been increasing interest in developing a Computer Science curriculum for K-8 students. However, there have been significant barriers to creating and deploying a Computer Science curriculum in many areas, including teacher time and the prioritization of other 21st-century skills. At McMaster University, we have developed both general computer literacy activities and specific programming activities. Integration of these activities is made easy as they each support existing curricular goals. In this paper, we focus on programming in the functional language Elm and the graphics library GraphicSVG. Elm is in the ML (Meta Language) family, with a lean syntax and easy inclusion of Domain Specific Languages. This allows children to start experimenting with GraphicSVG as a language for describing shape, and pick up the core Elm language as they grow in sophistication. Teachers see children making connections between computer graphics and mathematics within the first hour. Graphics are defined declaratively, and support aggregation and transformation, i.e., Algebra. Variables are not needed initially, but are introduced as a time-saving feature, which is immediately accepted. Since variables are declarative, they match students' expectations. Advanced students are also exposed to State by making programs that react to user taps or clicks. The syntax required to do so closely follows the theoretical concepts, making it easy for them to grasp. For each of these concepts, we explain how they fit into the presentations we make to students, like the 5200 children taught in 2016. Finally, we describe ongoing work on a touch-based Elm editor for iPad, which features (1) type highlighting (as opposed to syntax highlighting), (2) preservation of correct syntax and typing across transformations, (3) context information (e.g. displaying parameter names for GraphicSVG functions), and (4) immediate feedback (e.g. restarting animations after every program change).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑