arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.12700cs.CYcs.PL
收藏

CS1中函数类的介绍

Introduction to Functional Classes in CS1

Marco T. Morazán

摘要:

通过介绍使用基于设计的方法和函数式程序设计语言进行编程的学生将熟悉一流的函数。然而,它们很少将一级函数与对象和面向对象的程序设计联系起来。这是一个错失的机会,因为学生不可避免地会继续使用面向对象的程序设计语言的课程。本文描述了如何在基于设计的编程入门课程中向学生介绍使用函数式语言的对象。该方法向学生展示接口、类、对象和多态分派。初步的学生反馈表明,学生受益于这种方法。

英文摘要:

Students introduced to programming using a design-based approach and a functional programming language become familiar with first-class functions. They rarely, however, connect first-class functions to objects and object-oriented program design. This is a missed opportunity because students inevitably go on to courses using an object-oriented programming language. This article describes how students are introduced to objects within the setting of a design-based introduction to programming that uses a functional language. The methodology exposes students to interfaces, classes, objects, and polymorphic dispatch. Initial student feedback suggests that students benefit from the approach.

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

↑