Many printable classroom materials are gathered on activity.pencilcode.net. Here is a Quick Reference Sheet summarizing Pencil Code functions, and here is a brief CoffeeScript Language Reference. When learning about angles and turtle graphics, print out these reference sheets on Measuring Distance and Angles and on Arcs and Circles.
This Learn to Program with CoffeeScript tutorial introduces the basic concepts of Iced CoffeeScript by working on a single project. At the end of the two-hour tutorial, you have built a hangman game that uses variables, computer arithmetic, looping and conditionals, graphics, synchronization, and networking.
For teachers using Pencil Code to provide a elements of a full introduction to programming, the Pencil Code Teaching Manual provides twelve chapters of examples, explanations, and sample lesson plans on how Pencil Code can be used to cover topics from I/O, to Netsted Loops, to Recursion, to jQuery. The manual is freely available as printable PDFs.
Mr. Field’s Robotics Club is a middle grade aged book aimed at teaching children to program. Alice Darrow wrote it as her senior project for the University of Florida.
There are many other resources for learning about CoffeeScript. The book Smooth Coffeescript by E. Hoigaard is a good book oriented towards new programmers. If you would like a video lecture, here here is a video course from Code School that is oriented towards students who already know some programming. The O'Reilly book Little Book on CoffeeeScript by Alex MacCaw is a svelte 62 pages. This slide deck from Aseem Kishore covers the language pretty thoroughly. If you are looking for a cookbook with ideas for small pieces of code, take a look at the CoffeeScript Cookbook online, or explore the examples below.
The examples below are fit for brief explorations. A
that includes color illustrations for each example is
available on Amazon or as a pdf.
forstatement to repeat code.
->to define your own functions.
writeand HTML and CSS for output.