Today I’m going to review the ebook version of CoffeeScript Programming with jQuery, Rails, and Node.js authored by Michael Erasmus and published my Packtpub.
The eBook I read was approx. 125 pages and broken up into five chapters. I’ll go through each chapter individually.
Chapter 1: Why CoffeeScript
This chapter also covers CoffeeScript’s destructuring assignment, list comprehensions, classes, string interpolation, array slicing, splats and ranges. Its a great introduction to CoffeeScript and should whet the reader’s appetite to continue forward.
Chapter 2: Running CoffeeScript
Chapter 3: CoffeeScript and JQuery
Chapter 4: CoffeeScript and Rails
Chapter 5: CoffeeScript and Node.js
I feel this chapter’s contents is probably what will interest most readers. CoffeeScript has been a hit in the Node.js community. Yes, it has it’s detractors but it has a lot of support and I’ve seen a lot of Node.js projects that are written with CoffeeScript. A quick introduction to Node.js is done and a Hello World application is built in CoffeeScript to start off with. From there you move onto the Todo application using Node.js, Express, Jade, Socket.io (WebSockets), and Connect. I think the author did a great job here using the libraries/framework he chose. Using Socket.io really can show a person new to Node.js just how easy WebSockets are to use in Node.js. The WebSockets are used to collaborate with other users in the Todo application. The Node.js project is setup correctly and shows a great example of how to do it “right”.
I think a great bonus to chapter five would’ve been to quickly shown the reader how to do some basic unit tests on the code (using CoffeeScript of course). Its not essential to a CoffeeScript book but I think it would’ve been a nice touch.
Overall this is a great book, well priced, and worth picking up if your looking into increasing your productivity using CoffeeScript. Its a great introduction and puts your knowledge right into practice with the Todo application.