Node.js - JavaScript Chicago Meetup

Post on 29-Jan-2015

114 views 2 download

Tags:

description

Jason Huggins' (founder/CTO Sauce Labs), presentation to the JavaScript Chicago Meetup on January 28, 2010. Node.js: "The first non-browser version of JavaScript you'll want to use for every-day scripting and creating servers"

Transcript of Node.js - JavaScript Chicago Meetup

Node.jsJason Huggins

@jhugginshugs@saucelabs.com

{'jschi' : Date("Jan 28, 2010")}

CommonJS + Node =

The first non-browser version of JavaScript you'll want to usefor every-day scripting

and creating servers

CommonJS JavaScript finally gets a

standard library

Who, What, Where, When

• Started as “ServerJS” by Kevin Dangoor

• January 2009

http://commonjs.org

http://commonjs.org/

Node.js A fast, fun, complete

JavaScript run-time environment

http://nodejs.org

• Created by Ryan Dahl

• Presented at JSConf.eu, November 2009

Who, What, Where, When

Getting Started

• Download from nodejs.org

• tar -zxvf node-v0.1.26.tar.gzcd node-v0.1.26/configuremakesudo make installnode-repl

The “Big Idea”?It’s Event-based all the way down

db.query("select..", function (result) { // use result });

Demo

Gotchas

• It’s new (that’s good and bad)

• Step-debugging vs logging

• Its REPL is great, but immature. (Compare to Python)

Adoption Path

• Hear about it

• Read about it

• Try it

• Become a fanboi

Adoption Path

• ... go back to work...

• ... months later...

• Find a starter project

My starter project

• Create a node-based command line interface to Selenium IDE’s Selenese format exporter logic

• It’s implemented in JS already, but is currently only accessible through the UI

To be continued... ;-)

Node.jsJason Huggins

@jhugginshugs@saucelabs.com

{'jschi' : Date("Jan 28, 2010")}