4 ms·
If you find the syntax to be a problem - you may find CoffeeScript (http://coffeescript.org/ http://coffeescript.org/) interesting. It emphasizes the good parts
by FlemishBeeCycle 16y ago
If you find the syntax to be a problem - you may find CoffeeScript (http://coffeescript.org/ http://coffeescript.org/) interesting. It emphasizes the good parts of JavaScript while minimizing the warts, all wrapped up in very nice syntax.
- jashkenas 16y agoHere's a fun example. Matz (creator of Ruby) contributed a chapter to Beautiful Code (the O'Reilly book). In it, he uses this example of a Rake task as his example of a beautiful piece of Ruby: task :default => [:test] task :test do ruby "test/unittest.rb" end Let's see what that could look like in CoffeeScript, assuming a similar library: task default: ['test'] task 'test', -> ruby 'test/unittest.rb' Pretty nice. Running that through the CoffeeScript compiler produces this JavaScript: task({ "default": ['test'] }); task('test', function() { return ruby('test/unittest.rb'); });
- rbxbx 16y agohttp://coffeescript-theparts.heroku.com/ http://coffeescript-theparts.heroku.com/ this could be of interest, although the actual coffeescript site is better/great...