The Little Book on CoffeeScript
Author | : Alex MacCaw |
Publisher | : "O'Reilly Media, Inc." |
Total Pages | : 61 |
Release | : 2012-01-19 |
ISBN-10 | : 9781449325541 |
ISBN-13 | : 1449325548 |
Rating | : 4/5 (41 Downloads) |
Book excerpt: This concise book shows JavaScript developers how to build superb web applications with CoffeeScript, the remarkable language that’s gaining considerable interest. Through example code, this guide demonstrates how CoffeeScript abstracts JavaScript, providing syntactical sugar and preventing many common errors. You’ll learn CoffeeScript’s syntax and idioms step by step, from basic variables and functions to complex comprehensions and classes. Written by Alex MacCaw, author of JavaScript Web Applications (O’Reilly), with contributions from CoffeeScript creator Jeremy Ashkenas, this book quickly teaches you best practices for using this language—not just on the client side, but for server-side applications as well. It’s time to take a ride with the little language that could. Discover how CoffeeScript’s syntax differs from JavaScript Learn about features such as array comprehensions, destructuring assignments, and classes Explore CoffeeScript idioms and compare them to their JavaScript counterparts Compile CoffeeScript files in static sites with the Cake build system Use CommonJS modules to structure and deploy CoffeeScript client-side applications Examine JavaScript’s bad parts—including features CoffeeScript was able to fix