3 ms·
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 lang
by frankus 17y ago
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.
- sprsquish 17y agoCheck out CoffeeScript. It does exactly that. http://jashkenas.github.com/coffee-script/ http://jashkenas.github.com/coffee-script/
- olsonjeffery 17y agoYeah 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.
- tjholowaychuk 17y agoI 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