Your SlideShare is downloading. ×
0
Evented JavaScript for the Server<br />Lightning Talk<br />
Doing web development with anything not called node.js feels like going back home to the midwest and being force-fed trans...
node.js 101<br />JavaScript based I/O Framework<br />Built on Google’s V8 JavaScript Engine<br />Air thin bindings to low ...
var results =db.query("select * from Table");<br />for(var i =0; i <results.length; i++){<br />// write result<br />}<br /...
var results =db.query("select * from Table");<br />// WASTED CYCLES! WASTED CYCLES!<br />for(var i =0; i <results.length; ...
db.query("select * from Table",function(results){<br />for(var i =0; i <results.length; i++){<br />// write result<br />  ...
The Event Loop<br />
var http = require('http');<br />http.createServer(function (req, res) {<br />// respond to request<br />res.writeHead(200...
The Good Stuff<br />It’s fast, scalable and lightweight<br />Conceptually easier to grasp<br />Large, active enthusiastic ...
The Not So Good Stuff<br />Asynchronous code can get messy<br />Its evolving fast and changing constantly<br />Production ...
The Rest<br />Node.js isn’t doing anything “new”<br />It’s not just about the web stuff<br />Node.js isn’t the first or on...
</presentation><br />
Upcoming SlideShare
Loading in...5
×

Node.js Lightning Talk

1,396

Published on

Node.js Lightning Talk (short limited to 15 minutes with discussion afterwards).

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,396
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Node.js Lightning Talk"

  1. 1. Evented JavaScript for the Server<br />Lightning Talk<br />
  2. 2. Doing web development with anything not called node.js feels like going back home to the midwest and being force-fed trans fats.<br />@hipsterhacker<br />
  3. 3. node.js 101<br />JavaScript based I/O Framework<br />Built on Google’s V8 JavaScript Engine<br />Air thin bindings to low level C libraries<br />Evented & Non blocking<br />Single threaded<br />Everything is asynchronous<br />Scalable & Less memory hungry<br />
  4. 4. var results =db.query("select * from Table");<br />for(var i =0; i <results.length; i++){<br />// write result<br />}<br />// do some other stuff<br />
  5. 5. var results =db.query("select * from Table");<br />// WASTED CYCLES! WASTED CYCLES!<br />for(var i =0; i <results.length; i++){<br />// write result<br />}<br />// do some other stuff<br />
  6. 6. db.query("select * from Table",function(results){<br />for(var i =0; i <results.length; i++){<br />// write result<br /> } <br />});<br />// do some other stuff<br />
  7. 7. The Event Loop<br />
  8. 8. var http = require('http');<br />http.createServer(function (req, res) {<br />// respond to request<br />res.writeHead(200, {'Content-Type':'text/plain'});<br />res.end('Hello Worldn');<br />}).listen(8124);<br />console.log('Server running at http://127.0.0.1:8124/');<br />// # node example.js<br />// Server running at http://127.0.0.1:8124/<br />Anatomy of an App<br />
  9. 9. The Good Stuff<br />It’s fast, scalable and lightweight<br />Conceptually easier to grasp<br />Large, active enthusiastic community<br />Technologies covering all project needs<br />NPM (Node Package Manager)<br />Express (Web Framework)<br />Connect (Middleware Layer)<br />Vows, Docco, Jake, and many more.<br />
  10. 10. The Not So Good Stuff<br />Asynchronous code can get messy<br />Its evolving fast and changing constantly<br />Production ready concerns<br />It’s JavaScript, it’s dynamic<br />Debugging isn’t easy<br />IDEs aren’t that helpful<br />People are afraid of JavaScript<br />Currently requires POSIX based systems<br />Some Windows support (unstable)<br />
  11. 11. The Rest<br />Node.js isn’t doing anything “new”<br />It’s not just about the web stuff<br />Node.js isn’t the first or only SSJS framework<br />Narwhal<br />Ringo.js<br />Rhino<br />JScript<br />
  12. 12. </presentation><br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×