CoffeeScript instead of JavaScript

Short and Strong

© Mikko J. Pitkänen, fotolia.com

© Mikko J. Pitkänen, fotolia.com

Article from Issue 147/2013
Author(s):

Through the years, many languages have tried to improve or even replace JavaScript, including CoffeeScript, which runs in all JavaScript Runtime Environments and compiles into JavaScript.

Back in 2009, Jeremy Ashkenas had a huge amount of work on his desk. Full of zeal, he published in quick succession several versions of a new programming language with the goal of its being easier to read than JavaScript yet translate into JavaScript code. Just two years later, the Ruby on Rails project integrated what has since been dubbed the CoffeeScript [1] language.

In September 2012, Dropbox announced that it had ported the complete JavaScript code of its browser client to CoffeeScript [2]. The figures published by the cloud storage service are impressive: The Dropbox client code shrank by about 21 percent.

Cold Coffee

CoffeeScript, however, is not a completely new language. Ashkenas took good old JavaScript, replaced a couple of the more complex constructs with more readable abbreviations, and seasoned it with some Haskell and Ruby. For example, instead of saying

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • CoffeeScript

    Through the years, many languages have tried to improve or even replace JavaScript, including CoffeeScript, which runs in all JavaScript Runtime Environments and compiles into JavaScript.

  • JavaScript Alternatives

    JavaScript is the stuff of which many interactive web clients is made, but it comes with a fair amount of historical ballast. The creators of four alternative scripting languages seek to ditch the ballast.

  • Atom Code Editor

    The Atom code editor from GitHub is a highly configurable free application. Just one year old, even at this early stage, the mix looks very promising.

  • Native Apps

    The JavaScript frameworks React Native and NativeScript build a bridge between web app development and native app development. We look at the advantages of these native frameworks against the background of the classic app framework Meteor.

  • Google Web Toolkit

    The Ingenious Google Web Toolkit builds optimized JavaScript applications in a hurry.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News