advertisement

node.js everywhere

50 %
50 %
advertisement
Information about node.js everywhere
Technology

Published on March 11, 2014

Author: ValerioColtre

Source: slideshare.net

Description

node.js presentation to LUG Rome 2013, describing how to achieve a 'tail -f' functionality with node.js in few lines
advertisement

node.js - javascript ovunque Roma, 26 ottobre 2013 LinuxDay Roma 2013 Valerio Coltrè → . ←Claudio Mignanti .

Cosa è node.js è una piattaforma basata su V8, motore di google che interpreta javascript: ● facile approccio per gli sviluppatori HTML5 ● poche risorse richieste ● programmazione single thread ● webserver scriptabile in js ● perfetto per applicazioni data-intensive 1. http://nodejs.org/ 2. http://mashable.com/2011/03/10/node-js/ http://goo.gl/4VuKS6

V8, l’interprete V8 è l'engine javascript originalmente sviluppato per Chrome. 1. http://code.google.com/p/v8/ ● Molto veloce, profiling avanzato. ● Completamente opensource. http://goo.gl/4VuKS6

Dove si usa Ambiti d'uso: ● REST API (JSON) ● NodeCopter ● Coder for Raspberry PI ● Web Developer Tools (Grunt, Bower) Altri punti a favore: ● community molto aperta e fervente ● performance cpu-bound & data-bound. ● nuove tecnologie (websocket) http://goo.gl/4VuKS6

javascript Caratteristiche: ● linguaggio che supporta l'OOP ● interpretato a runtime ● debolmente tipato http://goo.gl/4VuKS6 Assi nella manica: ● closure ● prototipizzazione ● regex native (senza librerie) ● funzioni anonime native ● simple to learn, hard to master

event loop Gli interpreti javascript sono single thread ● basato su eventi ○ funzioni in listening sull'evento ● stack di chiamate ● accesso asincrono alle risorse http://goo.gl/4VuKS6 Specificatamente per nodejs: ● possibilità di accesso sincrono al filesystem ● buffer ● multiprocesso ● ...ed altre nodejs API

npm - node package manager http://goo.gl/4VuKS6 nodejs è basato su moduli ● AMD-compliant ● ogni modulo é isolato (fn wrap) Per gestire le (complesse) dipendenze c'è NPM moduli famosi: ● express Sinatra inspired web development framework ● async Higher-order functions and common patterns for async. code ● grunt The JavaScript Task Runner ● phone-gap allows you to create mobile apps using standardized web APIs

package.json Gestisce le dipendenze con altri moduli nodejs ● Scaffold veloce con npm init ● non re-inventare la ruota ● moduli utili anche < 100 righe ● one line install http://goo.gl/4VuKS6 http://package.json.nodejitsu.com/

package.json http://goo.gl/4VuKS6

Cosa si puo’ fare con nodejs: Esempio pratico - tail -f http://goo.gl/4VuKS6 tail.js → chunked.js ● comportamento analogo a tail -f ● versione web ● chunked response (HTTP 1.1) http://goo.gl/6Ozcc9

API di nodejs utilizzate: ● http - web server ● fs - lettura filesystem ● stream in lettura/scrittura Esempio pratico - tail -f http://goo.gl/4VuKS6 http://nodejs.org/api/ http://goo.gl/6Ozcc9

conclusioni ? ← https://github.com/claudyus https://github.com/mrgamer → https://github.com/TopCS http://goo.gl/4VuKS6 →

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Node.js

Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of ...
Read more

Node.js Everywhere

Node.js Everywhere | Fusion Creates Memorable Digital Experiences with Node.js 2 What does Fusion Marketing do? Fusion Marketing is a St. Louis, MO-based ...
Read more

Smashing Node.js: JavaScript Everywhere: Guillermo Rauch ...

Buy Smashing Node.js: JavaScript Everywhere on Amazon.com FREE SHIPPING on qualified orders
Read more

Node.js Everywhere on Vimeo

Mikeal Rogers, Community Manager, Node.js Foundation ... Did you know? Learn juicy film secrets from LES Film Festival co-directors Tony Castle and Roxy ...
Read more

Node.js

Node.js Everywhere: 7:20pm: Peter Piekarczyk: The Future of High Performance Node - Tips, Tricks & Techniques: 7:40pm: Luc Renambot: SAGE2: Local and ...
Read more

node.js - YouTube

Node.js Foundation is a collaborative open source project dedicated to building and supporting the Node.js platform and other related modules. Node.js is ...
Read more

Boston - Node.js

Boston. August 24, 2016. ... Node.js applications run everywhere (take that Java!). All of this comes together to create an extraordinary ecosystem.
Read more

Smashing Node.js: JavaScript Everywhere ... - amazon.de

Guillermo Rauch - Smashing Node.js: JavaScript Everywhere (Smashing Magazine Book) jetzt kaufen. ISBN: 9781119962595, Fremdsprachige Bücher - Programmieren
Read more

6 things you should know about Node.js | JavaWorld

JavaScript is everywhere. JavaScript is a quirky, ... This article, "6 things you should know about Node.js," was originally published at InfoWorld.com.
Read more

Node.js - Blog · Codeanywhere

Node.js. Real-Time Collaboration Issues and Solutions. Domagoj Kriskovic. 20 December 2014. Implementing a real-time collaborative editor in Codeanywhere ...
Read more