Blog

Why Aren’t You Using CoffeeScript?

"Well, what is it?"

"CoffeeScript is a little language that compiles into JavaScript." It's a simple, beautiful layer on top of Javascript.

Write readable, expressive code like:

square = (x) -> x * x

And get linted, pretty-printed, fast Javascript:

var square = function(x) {
  return x * x;
};

"But I'm a front-end developer."

Exactly! CoffeeScript may be built with Node.js, but you don't even need a web server to use CoffeeScript for your front-end projects. You can (and should) pre-compile all of your Coffee to Javascript before deploying your work.

"Node's a toy."

That's probably a topic for another day, but it is important to remember that CoffeeScript does not require putting Node.js (or any server-side code) into a production environment. Node is just used to compile the Coffee to Javascript.

"I don't have CoffeeScript set up."

We got you covered.

"I don't know CoffeeScript."

You already know CoffeeScript, because you already know Javascript. "The golden rule of CoffeeScript is: It's just JavaScript."