Jump to ratings and reviews
Rate this book

CoffeeScript: Accelerated JavaScript Development

Rate this book
Over the last five years, CoffeeScript has taken the web development world by storm. With the humble motto "It's just JavaScript," CoffeeScript provides all the power of the JavaScript language in a friendly and elegant package. This extensively revised and updated new edition includes an all-new project to demonstrate CoffeeScript in action, both in the browser and on a Node.js server. There's no faster way to learn to write a modern web application.

This new edition has been extensively revised and updated to reflect the current state and features of CoffeeScript. Every chapter has been revised and refactored, and new sections and a new chapter on testing have been added. If you already know JavaScript, this book will make your transition to CoffeeScript easy. If you're new to JavaScript, it's a great place to start.

New in this

Automating setup with the Grunt task runner

Using CoffeeScript classes with the Backbone framework

Using CoffeeScript's simple callback syntax to interact with the Express framework

A new chapter on client-side and server-side testing with Intern

* A new project that gives you hands-on experience with browser-side and server-side CoffeeScript

CoffeeScript is every bit as portable and effective as JavaScript. It aids development by adding a bevy of features, such as classes, splats, list comprehensions, and destructuring. These features make it easier to write clear, readable code, and by learning how these features work, you'll deepen your understand of JavaScript as well. This book is your complete guide to writing better JavaScript code, faster.

123 pages, Kindle Edition

First published August 3, 2011

12 people are currently reading
119 people want to read

About the author

Trevor Burnham

6 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
14 (10%)
4 stars
67 (50%)
3 stars
47 (35%)
2 stars
6 (4%)
1 star
0 (0%)
Displaying 1 - 12 of 12 reviews
Profile Image for Michael Economy.
198 reviews287 followers
December 31, 2011
As a preface: coffeescript is awesome. This book is not.


The first four chapters are good, but way to short. I wanted way more 'this is how it works' and more examples of good looking code. Many of the code examples are ugly.

The last two chapters are not related to the rest of the book, and not why I purchased this book.


I'm sure eventually later editions of this will be much better or other better books will be published. I feel like printing out the online docs would have been a better option.
Profile Image for Rod Hilton.
152 reviews3,116 followers
November 16, 2015
There's not really a lot to say about this book - if you're interested in CoffeeScript, then it's great. It summarizes a lot of what CoffeeScript is about, the syntax, and is basically very good documentation on the language.

Personally my experience with CoffeeScript is pretty limited - in fact on a few projects where CoffeeScript was the default language for client-side code, I wound up writing JavaScript and then using a converter to convert it to CoffeeScript. The CS was definitely shorter, but I always found it confusing. There's something about the syntax that I just generally find baffling for some reason.

This book helped things make a lot more sense for me. The weird language and syntax quirks started making a lot more sense, and the weirdness around variable scope finally clicked for me. That said, I still prefer writing JavaScript to writing CoffeeScript, and I realize that makes me a cranky old man but it's true. This isn't really the fault of the book or anything but I felt like it's worth mentioning that it didn't make a "convert" out of me or anything.

Full disclosure: I was a technical reviewer for this book.
Profile Image for Julian.
Author 5 books2 followers
March 23, 2016
This book is interesting, but it fails to make a compelling case for CoffeeScript.

(1) Nearly all of the features the author describes as benefits of CoffeeScript exist in ECMAScript 6, only there they have been done properly, in a systemic revamp of the language.
(2) The author claims a major selling point is that CoffeeScript has lots of shortcuts, and special notations to let you save key-presses. He points out that this is like Ruby, which is, to my mind, not a positive. I am very firmly of the opinion of the Python school - there should be one consistent notation. Consistency and syntactic clarity are worth more than number of characters typed.

In other words, the book fails to make the case for CoffeeScript's existence as anything other than a niche product for hipsters.
Profile Image for Rick.
12 reviews
March 13, 2013
Generally, I got a lot out of this book. There have been a couple things in JavaScript that I never really understood, and whether its coffeescript's design or the author's writing, I finally grasped a couple things. That said, while its helpful to know a bit about how jquery and coffeescript play together (or node.js), its not why I bought the book. I could have used some more rigorous examples, and a bit more time on some of the more confusing aspects of the language itself.
Profile Image for Aidid.
4 reviews2 followers
October 9, 2011
Good book to those who are new to CoffeeScript, but prior talking about javascript, at least a basic introduction to javascript is a must. Good read on the book and amazing exercises at the end of every chapters. Exercises really make you aware of the gist and important part of a particular chapter.
Profile Image for Carlos.
52 reviews7 followers
May 25, 2011
Excelente cobertura de coffeescript. Muy ameno y simple. Esta bueno el ejemplo
Que se desarrolla a lo largo del libro mostrando todas las formas que se puede utilizar coffe, incluso desde el server con Node.js
13 reviews43 followers
February 5, 2012
Quick tutorial in usual pragprogs' style. You get the basics but always want to read another book to fully understand the subject.
Profile Image for Nick Carter.
32 reviews2 followers
August 29, 2015
Good overview with multiple realistic use-cases culminating in an interesting game program written in front and back in CoffeeScript
Profile Image for Juha.
21 reviews2 followers
March 6, 2012
Quite a good introduction to CoffeeScript and does a nice job pointing out what's good about CoffeeScript versus JavaScript.
Profile Image for John.
24 reviews
June 28, 2022
A great intro and overview, but nothing you couldn't get from a series of blogs and web tutorials. Just nice to have it all in one place on my bookshelf.
Profile Image for Eric.
16 reviews2 followers
June 14, 2013
This was a great introduction to coffeescript, I would prefer this book if you already know javascript though.
Displaying 1 - 12 of 12 reviews

Can't find what you're looking for?

Get help and learn more about the design.