News for hackers. Stuff that matters.
Re:Express: A Node.js web development framework by frankus on Friday March 19, 2010 @11:58AM (#1204397)
I guess I'm about the last person in the world to recognize this (cough Steve Yegge cough), but it really is starting to look like the next big server-side language is going to be JavaScript.

It's got a non-intimidating C-like syntax, has some powerful features (e.g. being able to use anonymous functions as closures), is garbage collected, and can run client side. And you've got three or four well-funded organizations full of smart people duking it out over who can make the fastest implementation.

The syntax is a bit ugly if you're used to something like Ruby. Comparing Express to Sinatra, I miss the block syntax and the implicit returns (although JS handles passing in multiple blocks quite elegantly).

Maybe what we'll see are a number of languages that compile down to JavaScript, sort of RJS on steroids.

Re:Express: A Node.js web development framework by olsonjeffery on Friday March 19, 2010 @01:05PM (#1204571)
Yeah coffee-script has both implicit returns and block syntax, amongst many other marvelous things. The Express examples in the GitHub README would look a lot nicer in coffee-script.
Re:Express: A Node.js web development framework by tjholowaychuk on Friday March 19, 2010 @04:15PM (#1205138)
I will be adding some coffee-script examples soon. The source of coffee is very nasty though :S, and I am not a huge fan of source to source compilation for anything besides being a toy language
Re:Express: A Node.js web development framework by sprsquish on Friday March 19, 2010 @12:41PM (#1204511)
Check out CoffeeScript. It does exactly that. http://jashkenas.github.com/coffee-script/