CoffeeScript in Action is a tutorial that teaches you how, where, and why to use CoffeeScript. It begins by quickly exposing you to CoffeeScript's new, but instantly-familiar syntax. Then, you'll explore programming challenges that illustrate CoffeeScript's unique advantages. Language junkies will especially appreciate how this book takes idioms from other programming languages and shows you how CoffeeScript makes them available in JavaScript.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Book
JavaScript runs (almost) everywhere but it can be quirky and awkward. Its cousin CoffeeScript is easier to comprehend and compose. An expressive language, not unlike Ruby or Python, it compiles into standard JavaScript without modification and is a great choice for complex web applications. It runs in any JavaScript-enabled environment and is easy to use with Node.js and Rails.
CoffeeScript in Action teaches you how, where, and why to use CoffeeScript. It immerses you in CoffeeScript's comfortable syntax before diving into the concepts and techniques you need in order to write elegant CoffeeScript programs. Throughout, you'll explore programming challenges that illustrate CoffeeScript's unique advantages. For language junkies, the book explains how CoffeeScript brings idioms from other languages into JavaScript.
What's Inside
Readers need a basic grasp of web development and how JavaScript works. No prior exposure to CoffeeScript is required.
About the Author
Patrick Lee is a developer, designer, and software consultant, working with design startup Canva in Sydney, Australia.
Rock solid end-to-end complete CoffeeScript development.
I've read many CoffeeScript books. But this book is different in its aspect of teaching the language. It just doesn't teach you CoffeeScript but it also teaches you how you can apply the language to your JavaScript code conventions using more expressive, simple and elegant language syntax. I recommend to get and read this book. You'll definitely benefit in investing this book. I like how author explains each concept thoroughly. Working examples are great and their code listings are self explanatory. You won't get stuck anywhere throughout the book.
Here are the highlights of the book:
1st part teaches how you can simplify your day to day JavaScript tasks using CoffeeScript. It describes every aspect of the language and simplicity it provides to make your life easier as a JavaScript developer. This part begins getting up and running with CoffeeScript to full language syntax covered in 4 chapters. Chapters are arranged in order that you won't get lost inside this new little language. You'll find in this part how the CoffeeScript can cut your development time and lines of code you write to achieve some feature. This part presents CoffeeScript in a style that you won't know if you are writing a program, instead it feels like you are writing English language (Thanks to CoffeeScript syntax and keywords). This part finishes introducing you CoffeeScript feature 'classes', our old friend in OOP.
2nd part builds on top of 1st part. It further examines how can we use classes in our day to day work like we do in Java and other OOP languages. This part also deep dives in CoffeeScript and also uncovers how the compiler works so that you can write your own DSLs. This part also describes how you can implement fluent interfaces for your code so that by writing less code we get more out of it. This part finishes telling you some more advanced stuff that every CoffeeScript developer should know. Nodejs developers would benefit more by following this part of the book.
3rd part describes the essential known as Testing. Though we use test frameworks but the way this book describes testing is invaluable. Further this book describes Browser and Nodejs programming. This part finishes by telling what CoffeeScript has up its sleeves that ECMAScript 6 is going to introduce in near future.
Conclusion:
This book in my opinion is a good investment. You will not only learn CoffeeScript but also learn some techniques you can use in your JavaScript programming. This book is an end-to-end coverage of the language. I suggest JavaScript developers in general and Nodejs developers in particular should learn CoffeeScript, as in near future ECMAScript 6 is going to adapt some of CoffeeScript language syntax. I personally enjoyed reading this book and hope you too will. And at last thanks to Manning for providing me with the review copy of this great book.