Thursday, March 13, 2014

Getting Started with CoffeeScript


CoffeeScript is a small language that compiles into very good JavaScript.

I have seen some confusion around against CoffeeScript saying:
-- Not every browser understands CoffeeScript by default
-- If we used CoffeeScript JS in browser, it is very hard to debug the code.

Both these sayings are true.

But I do not used CoffeeScript directly into the browser. Rather, I write code in CoffeeScript taking advantage of syntax etc. and compile it into JavaScript on my machine itself. So even my unit testing happens with good quality JavaScript code.

This was also part of the workshop series on creating single page web apps and helped people read the code example in BackboneJS presentation.