This article is a very cursory introduction to CoffeeScript.
- It’s a good language at heart
- It’s everywhere
Well, not really.
My first cup
The tasty bits
- Significant whitespace (Yeah, you heard me - I like it)
- It doesn’t lock you in ? the JS it produces is pretty damn good. Even JSLint approves!
- It plays nicely with existing JS libraries
- It hit 1.0 last December
- If you’re an adventurous (read geeky) type, you can use it with node.js too
- Its name is ripe for parody.
The not-so-tasty bits
- If you’re not automating your deployments, compilation adds an extra step when you’re publishing your site/app
- There is some learning curve if if you’ve never written any Python or Ruby before
Yeah, but is anybody actually using it?
CoffeeScript is already being embraced by a number of forward thinking developers and tech companies. A few notable examples being:
- 37Signals Chalk ? (There’s a cool dissection of the technology too for the geekier ones among you)
- Ars Technica Reader for iPad
- The Lincolnshire Poacher ? Those sweet graphics are generated using CoffeeScript and Raphael
CoffeeScript is clear, concise, powerful and most of all it’s fun. Give it a shot next time you need to write some JS - you’ll like it, promise.