Webvisions: Let’s run javascript everywhere

Thursday, May 20th, 2010

First session and I’m back with Tom who gave the class yesterday.

And now to server-side js!

About half the room uses php, almost everyone uses js. Advantage #1 – lots of developers already have experience. #2 – same code base on client and server.

Lots of run times to choose from. V8, spider monkey, rhino.

No DOM for you server-side.

V8 is ECMAscript (a subset/diversion of js). JS has a few extra features: E4X, let scope block, generators, generator expressions.

Common js – set of standards for ssjs. Includes modules, file systems, …

Application Frameworks
Narwhal: most complete implementation of common js.
Jack/jsgi: js gateway interface.
NodeJS: most popular (by far).

Form validation is a good example where you have to do the same task server and client side. Why not use the same code?

Great information, but Tom needs to show some more sexy demos.

Leave a Reply

You know you want to...