CoffeeScript - pythonic JavaScript?

Przemek Lewandowski - Co-founder & CTO at Sunscrapers

Przemek Lewandowski

6 August 2012, 1 min read

CoffeeScript is the youngest child in our technology stack. We have started to use it after Confitura 2012 conference, where one of the speakers had compared JavaScript to Internet browser assembler. This is quite an imaginative comparison.

In a nutshell CoffeeScript is a little language that transcompiles into JavaScript. It’s just a syntax sugar and nothing else. CoffeeScript syntax is very concise - e.g. it uses indents, few standard elements are optional (function calling parentheses, line ending semicolons) and it has many syntax tricks like simple function binding. With all this stuff CS programs look very slim and… very pythonic. We love Python, so we should fall in love with CofeeScript. Of course every rose has its thorns - one of the most common complaints is that CS adds additional step to your building process and it is hard to debug. This is conflict between readability and small technical inconvenience. We chose readability as more important value.

The easiest way to try CS is interactive mode on its homepage - after typing some CS code you should see corresponding JS script.

Recent posts

Are you ready for your next project?

Whether you need a full product, consulting, tech investment or an extended team, our experts will help you find the best solutions.

Hi there, we use cookies to provide you with an amazing experience on our site. If you continue without changing the settings, we’ll assume that you’re happy to receive all cookies on Sunscrapers website. You can change your cookie settings at any time.