node js javascript no lado do servidor

Post on 18-Dec-2014

1.544 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Palestra sobre Node.JS, sua filosofia e recursos. FLISOL 2012 - 28/04/2012 - Salvador/BA - Brasil

TRANSCRIPT

Node.JS Javascript no lado do Servidor

Mauricio Vieira

Salvador, 28 de abril de 2012

Sobre mim

http://mauriciovieira.net

/mbcvieira

@mauriciovieira

/mauriciovieira

Omni ignotum pro magnifico

http://linguagil.com.br

Agosto/2012

http://linguagil.com.br

http://nodejs.org

http://code.google.com/p/v8

JavaScript → código nativoObjetos em cacheColetor de lixo stop-the-world

Reactor PatternPerl AnyEventPython TwistedRuby EventMachineErlang

Javascript

setTimeout(function() {

console.log('World!');

}, 2000);

console.log('Hello');

var fs = require('fs');

fs.stat('/etc/passwd', function(err, stats) { if (err) {console.log(err.message); return; } console.log(stats); //console.log('this file is ' + stats.size + ' bytes long.'); });

The Way of Node

http://bit.ly/A3bObP

The Way of Node

1. Node is a platformtimers, process, util, events, Buffer,Stream, Crypto, TLS/SSL, fs, path,Net, UDP, dns, HTTP(S), tty, zlib, os.

http://commonjs.org

http://npmjs.org

92672795

The Way of Node

2. Node is JavaScript

(but JavaScript is not Node)

The Way of Node

3. Node is callbacks& Streams

(standard callback API and Streams)

http://socket.io

http://faye.jcoglan.com/

http://pubsub.io/

The Way of Node

4. Node is not pretending to be blocking when it is not.

The Way of Node

5. Node is not going toinclude that module.

The Way of Node

6. Node is for building.

(not a science experimentor academic research)

http://expressjs.com/

http://geddyjs.org/

http://railwayjs.com/

http://flatironjs.org/

The Way of Node

7. Node is a community.

http://mashable.com/2011/03/10/node-js/

The Way of Node

8. Node is faster.

(Node is never fast enough)

The Way of Node

9. Node is fun.

Obviously!

http://nodeknockout.com/

Permite observar o que os usuários fazem em tempo real !

http://observer.no.de/

Observer

Collaborative, social beatand melody sequencer.

http://youtu.be/QmtB9o4HBQU

Eight Bit Beats

Time brasileiro!

Drive in virtual :-)

http://driv.in/

Driv.in

Players create chains of alternating drawings and captions with hilarious results.

http://doodleordie.com/

Doodle or die

Criação de backronimos.

http://driv.in/

ACROnode.com

Usa a biblioteca node-webglfeita durante as 48 horas de concurso.

http://minimason.no.de/

GPU lava

Projeto a la SETI@home para destronar o maior computador de Xadrez

http://joshfire.nko2.nodeknockout.com/

Chess@Home

Mais exemplos

https://gomockingbird.com/

http://codestre.am

Obrigado!

http://mauriciovieira.net

/mbcvieira

@mauriciovieira

/mauriciovieira

Omni ignotum pro magnifico

top related