On December 13, 2009, Jeremy Ashkenas made the first Git commit of CoffeeScript with the comment: “initial commit of the mystery language.” The compiler was written in Ruby. On December 24, he made the first tagged and documented release, 0.1.0. On February 21, 2010, he committed version 0.5, which replaced the Ruby compiler with a self-hosting version in pure CoffeeScript. By that time the project had attracted several other contributors on GitHub, and was receiving over 300 page hits per day.
On December 24, 2010, Ashkenas announced the release of stable 1.0.0 to Hacker News, the site where the project was announced for the first time.
Almost everything is an expression in CoffeeScript, for example
if can also be written after the conditional statement.
Many unnecessary parentheses and braces can be omitted; for example, blocks of code can be denoted by indentation instead of braces, function calls are implicit, and object literals are often detected automatically.
The latest additions to CoffeeScript are as follows:
- Source maps allow users to de-bug their CoffeeScript code directly, supporting CoffeeScript tracebacks on run time errors.
- CoffeeScript supports a form of Literate Programming, using the
.litcoffeefile extension. This allows CoffeeScript source code to be written in Markdown. The compiler will treat any indented blocks (Markdown’s way of indicating source code) as code, and ignore the rest as comments.
The above is a brief about CoffeeScript. Watch this space for more updates on the latest trends in Technology.