09.11.2012
A little language that compiles into JavaScriptJeremy Ashkenas (CoffeeScript + Backbone.js)
<script type="text/coffeescript"> jQuery -> if coffeescript.isAwesome? console.log "Yeah" </script> <script src="http://coffeescript.org/extras/coffee-script.js">
npm install -g coffee-scriptNutzen des 'coffee' Programms
coffee input.coffee output.js coffee watch
The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript runtime, and tends to run as fast or faster than the equivalent handwritten JavaScript.Coffeescript-Dokumentation
Write new JS in CoffeeScript.Github Javascript-Styleguide
Dropbox now writes all new browser-side code in CoffeeScript, and we’ve been loving it. [...]https://tech.dropbox.com/?p=361
In the process of converting, we shaved off more than 5000 lines of code, a 21% reduction.
coffee watchoder guard-coffeescript
class Admin { ... } interface Person { firstname: string; lastname: string; } function greet(variable: Person) {...}
class HelloDartTest { static testMain() { print("Hello, Darter!"); } } main() { HelloDartTest.testMain(); }
(var square (function (x) (* x x))) (console.log (square 10))
Stefan Wienert
@stefanwienert
stefanwienert.net