He starts at the classic “Hello, world” level of CoffeeScript, including installing the CoffeeScript compiler, deciding which text editors are best, and learning how to write and debug simple CoffeeScript code.
From there, he moves quickly into showing you how to put CoffeeScript to work and develop a simple multiplayer game.
There are several different ways to run CoffeeScript, and there are different requirements, depending on whether your machine is Mac, Windows or Linux. Burnham describes these in his text and in an appendix, and he gives links to more information.
He also shows how to use a browser-based compiler for developing his book’s example application. But he does not recommend using the browser-based compiler for production work.
His book has six chapters and four appendices:
- Chapter 1 – Getting Started
- Chapter 2 – Functions, Scope, and Context
- Chapter 3 – Collections and Iteration
- Chapter 4 – Modules and Classes
- Chapter 5 – Web Interactivity with jQuery
- Chapter 6 – Server-Side Apps with Node.js
- A1 – Answers to Exercises
- A2 – Ways of Running CoffeeScript
- A4 – Bibliography
In a foreword to the book, CoffeeScript’s creator, Jeremy Ashkenas, hails Burnham’s work as “a gentle introduction to CoffeeScript led by an expert guide.”
It lives up to that good billing, with many short code examples and many short tutorials and exercises that can lead quickly to building both a working app and a working understanding of CoffeeScript.
— Si Dunn