Article contents
How to design co-programs
Published online by Cambridge University Press: 02 July 2021
Abstract
The observation that program structure follows data structure is a key lesson in introductory programming: good hints for possible program designs can be found by considering the structure of the data concerned. In particular, this lesson is a core message of the influential textbook “How to Design Programs” by Felleisen, Findler, Flatt, and Krishnamurthi. However, that book discusses using only the structure of input data for guiding program design, typically leading towards structurally recursive programs. We argue that novice programmers should also be taught to consider the structure of output data, leading them also towards structurally corecursive programs.
Video Abstract
- Type
- Education Matters
- Information
- Copyright
- © The Author(s) 2021. Published by Cambridge University Press
References
- 4
- Cited by
Discussions
No Discussions have been published for this article.