Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Essential Node for Web Developers Mike Amundsen  Principal API Architect  Layer 7 Technologies @mamund                  ...
Preliminaries Mike Amundsen Web Architect, Author, Presenter Software Explorer Principal API Architect, Layer 7 Techno...
Last Project Building Hypermedia APIs w/ HTML5 & Node (November 2011) Methodology for writing/maintaining business-level...
Next Project RESTful Web APIs (Summer 2013) Co-author with Leonard Richardson Follow up to Richardson/Ruby’s RESTful We...
Lets start with a bit of     Philosophy...                            5
Unix Philosophy   Write programs that do one thing and do it well.   Write programs to work together.   Write programs ...
Node Philosophy (possible)•   Write modules that do one thing and do it well.•   Write modules to work together.•   Write ...
Eric S. Raymonds Design Rules"Rule of Diversity: Distrust all claims for one true way"  -- Eric S. Raymond                ...
Reminder: My Examples   are NOT      the"One True Way"                 9
Essentially, Node is..."...a platform built on Chromes JavaScript runtime foreasily building fast, scalable network applic...
Node is…“Node is intended to be a very low-level library thatfacilitates higher-level extensions and abstractions inuserla...
And its different because...."Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient...
So that means...."Most of the applications were writing today are heavilyI/O bound. Because of the event-driven nature ofJ...
But does it run on my machine?"To build a diverse open sourcecommunity, you need a wideplatform," - Paul Querna,Rackspace ...
Essential NodeJS on a single slide (well, almost)                                                    15
Ok, introduce me then...                           16
Hello, Node!               17
Ok, but how do I deliver files?                                  18
Ok, but how do I deliver files using streams?                                                19
Not bad; how about HTML Forms?                                 20
Cool. Now how about a server-side mash-up?                                             21
Yeah, but how do you write files?                                    22
What about HTTP Authentication?                                  23
Ok, but wheres that "sockets" stuff?                                        24
Alright, how about MVC & routing?                                    25
Hey, this is all async & hard, right?                                          26
So are there lots of libraries?                                  27
So are there lots of libraries?                                  28
Bottom Line… While Node *is* Javascript, the ethos is closer to C/Unix Don’t get tied up in the “Evented IO” stuff; just...
So....         30
Node.js...•   “Low-level” Javascript•   Non-blocking I/O•   Cross Platform•   Pages, Forms, Services, APIs, Sockets•   MVC...
Why not join the hipster Nod-ies?                                    32
Essential Node for Web Developers Mike Amundsen  Principal API Architect  Layer 7 Technologies @mamund                  ...
Upcoming SlideShare
Loading in …5
×

Essential Node.js for Web Developers from Developer Week 2013

1,315 views

Published on

Description: Been thinking of trying out Node.js but not sure where to start? This fast-paced session hits all the highlights; the key concepts and skills you\'ll need to easily and quickly build scalable Web apps. Unlike some introductions that spend time explaining event loops and web sockets, this session starts with a typical \"Hello, Node\" demo and quickly moves to short, fully-functional apps that show how to deal with static files, POST forms, mashups from other servers, file manipulation, data-handling, and even supporting HTTP Authentication. If you need to get up-to-speed on Node.js really fast, or just want to get a great introduction to coding this powerful Web server, this talk is for you. Slides and source code from this presentation will be made available after the session.

  • Be the first to comment

Essential Node.js for Web Developers from Developer Week 2013

  1. 1. Essential Node for Web Developers Mike Amundsen Principal API Architect Layer 7 Technologies @mamund 1
  2. 2. Preliminaries Mike Amundsen Web Architect, Author, Presenter Software Explorer Principal API Architect, Layer 7 Technologies 2
  3. 3. Last Project Building Hypermedia APIs w/ HTML5 & Node (November 2011) Methodology for writing/maintaining business-level APIs in the cloud. Real solutions for real use-cases. Three Servers, Six Clients, 200+ pages. 3
  4. 4. Next Project RESTful Web APIs (Summer 2013) Co-author with Leonard Richardson Follow up to Richardson/Ruby’s RESTful Web Services (2007) Focus on scaling up application-level interoperability with hypermedia Beyond HTML, XML, and JSON is … 4
  5. 5. Lets start with a bit of Philosophy... 5
  6. 6. Unix Philosophy Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams. - Douglas McIlroy 6
  7. 7. Node Philosophy (possible)• Write modules that do one thing and do it well.• Write modules to work together.• Write modules to handle streams and events 7
  8. 8. Eric S. Raymonds Design Rules"Rule of Diversity: Distrust all claims for one true way" -- Eric S. Raymond 8
  9. 9. Reminder: My Examples are NOT the"One True Way" 9
  10. 10. Essentially, Node is..."...a platform built on Chromes JavaScript runtime foreasily building fast, scalable network applications." 10
  11. 11. Node is…“Node is intended to be a very low-level library thatfacilitates higher-level extensions and abstractions inuserland. It is more like C than it is like Python, and that isby design.” – Isaac Schlueter 11
  12. 12. And its different because...."Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data- intensive real-time applications that run across distributed devices." 12
  13. 13. So that means...."Most of the applications were writing today are heavilyI/O bound. Because of the event-driven nature ofJavaScript (and Node by extension), whatever you writewith it is going to be very fast." - Guillermo Rauch(socket.io) 13
  14. 14. But does it run on my machine?"To build a diverse open sourcecommunity, you need a wideplatform," - Paul Querna,Rackspace 14
  15. 15. Essential NodeJS on a single slide (well, almost) 15
  16. 16. Ok, introduce me then... 16
  17. 17. Hello, Node! 17
  18. 18. Ok, but how do I deliver files? 18
  19. 19. Ok, but how do I deliver files using streams? 19
  20. 20. Not bad; how about HTML Forms? 20
  21. 21. Cool. Now how about a server-side mash-up? 21
  22. 22. Yeah, but how do you write files? 22
  23. 23. What about HTTP Authentication? 23
  24. 24. Ok, but wheres that "sockets" stuff? 24
  25. 25. Alright, how about MVC & routing? 25
  26. 26. Hey, this is all async & hard, right? 26
  27. 27. So are there lots of libraries? 27
  28. 28. So are there lots of libraries? 28
  29. 29. Bottom Line… While Node *is* Javascript, the ethos is closer to C/Unix Don’t get tied up in the “Evented IO” stuff; just write your code and enjoy Async is the future; learn to love the future. Get to know the NPM library; lots of good stuff there. Check out Shelly Power’s “Learning Node” book 29
  30. 30. So.... 30
  31. 31. Node.js...• “Low-level” Javascript• Non-blocking I/O• Cross Platform• Pages, Forms, Services, APIs, Sockets• MVC, Templates, ...• 1000s of available libraries• All Open Source Oh yeah, one more question... 31
  32. 32. Why not join the hipster Nod-ies? 32
  33. 33. Essential Node for Web Developers Mike Amundsen Principal API Architect Layer 7 Technologies @mamund 33

×