Node.JS

875 views

Published on

BackToSchool @ True Vision

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
875
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Node.JS

  1. 1. Node.JSServer side javascript
  2. 2. Intro Good old javascript But server side Fully asynchronus “Buzz” technology
  3. 3. Use cases Real time web applications Messaging File download Anything that spends lot of time waiting for something
  4. 4. Differences from Web browser CommonJS – http://wiki.commonjs.com Modules  Npm – http://www.npmjs.org File system, external process and network API
  5. 5. Programming paradigm Non blocking operations Functional programming  Lazy – doing only when needed Event based  Do something when something happens
  6. 6. Example HTTP server, which serves movie.avi from current directory
  7. 7. Modules  require();  exports functions and variables from from files module.exports
  8. 8. callbacks  most common code construct  functions are variables  non-blocking  “this” magick – var self = this; trick
  9. 9. Thank you!

×