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.
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.
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.
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.
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.
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.
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
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.