I'm new to CoffeeScript, but I am really looking forward to writing JavaScript code in something more akin to Ruby.
What 2-3 good resources can be recommended for tutorials or screencasts to get up and running with CoffeeScript?
More has become available:
The Little Book on CoffeeScript, free book on CoffeeScript, great if you know JavaScript
Smooth CoffeeScript, free book on CoffeeScript without JavaScript knowledge
I made the last one. Also have a look at the CoffeeScript Cookbook.
[Update: I have a book coming out from PragProg, CoffeeScript: Accelerated JavaScript Development. Also, the latest version of CoffeeScript is now 1.1.0, though it introduced few changes; mainly, it's a bugfix release.]
The official documentation at http://coffeescript.org is the only up-to-date place you're going to find. Right now, the latest release of CoffeeScript is 1.0.1. There were a lot of changes in 1.0.
Orbit linked to two other resources that are nice but dated. The tongue-in-cheek 7 Reasons You Are Gonna Hate It presentation is from way back when all assignment was done using :
instead of =
. The NetTuts+ tutorial was written when the latest release was 0.9.6 and, I think, doesn't touch on anything that's changed since then (such as classes).
So, you might want to go through the NetTuts+ tutorial, then the official docs, then start reading some real-world source code. See http://github.com/jashkenas/coffee-script/wiki/In-The-Wild for a listing, or look at some of the recent posts by @CoffeeScript on Twitter (which I maintain)—when people are doing interesting things with CoffeeScript, chances are that I'm tweeting about it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With