Jump to ratings and reviews
Rate this book

CoffeeScript in Action 1st edition by Patrick Lee (2014) Paperback

Rate this book
At the heart of JavaScript is a beautiful little language.

Unfortunately, that inner beauty is clouded with awkward syntax and structure. CoffeeScript is a new way to write JavaScript, providing Ruby-like readability and a more expressive syntax. It compiles into standard JavaScript and works on all implementations without modification.

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.

So why you should bother learning a new way to code JavaScript?

CoffeeScript preserves everything you know and love about JavaScript and wraps it in a modern, efficient syntax. It's perfect for complex web programming, including server-side JavaScript executing on Node.js. CoffeeScript also enhances JavaScript's natural Functional Programming features, a big advantage for building high-capacity, fault-tolerant applications. CoffeeScript is fully supported in Rails 3.1, and, via a free plugin, even Microsoft Visual Studio. Plus, it's really cool.

Paperback

First published January 1, 2013

14 people want to read

About the author

Patrick Lee

79 books13 followers
There is more than one author with this name

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
2 (50%)
4 stars
1 (25%)
3 stars
0 (0%)
2 stars
1 (25%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Manvendra Singh.
1 review
June 15, 2014
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.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.