Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

News

process

window

Bootstrap

ReferenceError: alert is not defined

$ sudo apt-get install node

$ vi server.js

$ node server.js

JS global object

Goodies!

Good

Bad

later

express.js

language that you already know

server and client paradigms

are different

$ sudo apt-get install npm

$ npm install express

low entry barrier

callbacks are a pain

socket.io

productivity

async code is hard to read

lightweight, low memory usage

not type safe

async.js

Hello from server!

no great IDE

or promises

throughput

performs better than you expect

single thread works for non CPU-intensive apps

var http = require('http');

http.createServer(function(req, res) {

res.end('Hej världen!');

}).listen(8080);

Hello World?

console.log('¡Hola el mundo!')

Introduction

"Almost no function in Node directly performs I/O, so the process never blocks. Because nothing blocks, less-than-expert programmers are able to develop fast systems."

Server-side JavaScript

Asynchronous programming

event-driven

V8

REPL

Single-threaded

no concurrency

One language

non-blocking

that you already know

Reactor pattern

npm

Therefore

Play with it to broad your horizons!

Good for small projects

(LinkedIn and Wallmart use it for mobile apps)

(also trendy and cool)

Perfect for prototypes!

Anton Keks

Learn more about creating dynamic, engaging presentations with Prezi