Apr 2012
16 Mon
17 Tue
18 Wed
19 Thu
20 Fri
21 Sat 10:00 AM – 05:30 PM IST
22 Sun
Ravindra
The disadvantages of CoffeeScript are fairly well known:
There’s an additional compilation step.
You can’t run a debugger on it directly (yet).
There are fewer resources to learn the language, and fewer people who already know it.
The language is changing, while JavaScript remains practically inert.
But this is really only half a question. What’s important is: Are the benefits worth it? Does CoffeeScript have a future?
CoffeeScript is a little language that compiles into JavaScript. Underneath all those awkward braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
The golden rule of CoffeeScript is: “It’s just JavaScript”. The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript.
UI Developer at Cleartrip, Previously worked DiscountPandit, Vavia Technologes.
Hosted by
{{ gettext('Login to leave a comment') }}
{{ gettext('Post a comment…') }}{{ errorMsg }}
{{ gettext('No comments posted yet') }}