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.

Przemek Lewandowski - Co-founder & CTO at Sunscrapers

Przemek Lewandowski

Co-founder & CTO

Przemek is the co-founder and CTO of Sunscrapers. After graduating from the Warsaw University of Technology, he worked as a software consultant. At Sunscrapers, Przemek acts as the technical leader who supervises high-quality service delivery, helps to solve problems, and mentors other team members. Przemek is a passionate community activist, he leads open-source projects, volunteers in projects like Django Girls London, and organizes/speaks at tech events like PyWaw.

Let's talk

Discover how software, data, and AI can accelerate your growth. Let's discuss your goals and find the best solutions to help you achieve them.

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.