SlideShare uma empresa Scribd logo
1 de 51
LiveWire Your IP address is  <SERVER>write(request.ip)</SERVER>
Browser only&no I/O
The dawn of I/0
V8
myElement.onclick = function () {  varelem = this; setTimeout( function () {      }, 3000); };
$.ajax({  url: url,  dataType: 'json',    data: data,    success: function () {} });
Just get out there and use it You may be working at a different level than you’re used to
Using node.js varfs = require("fs"); fs.readFile(file,function(err,data) {   // do something });
var http = require('http'); http.createServer(function (request, response) {   response.writeHead(200, {     'Content-Type': 'text/plain'});  response.end('Hello World'); }).listen(8124);
var http = require('http');  varg = http.createClient(80, 'www.google.com');  var request = g.request('GET', '/', {   'host': 'www.google.com'});  request.end();  request.on('response', function (response) {   // do something with the response });
CoffeeScript “The mental model that you use to write CoffeeScript is identical to how you'd write the equivalent JavaScript” Jeremy Ashkenas
(app.get "/projects/:id$", (req, res) -> db.getDocreq.params.id, (err, doc) ->         if not doc res.send 404             return res.render "project.jade”)
TestingPackage managementBuilds
vows.describe('Zero').addBatch({      'When dividing by zero': {        topic: function () { return 2/0 },           'we get Infinity': function (t) {  assert.equal (t, Infinity); }      } }).run();
Kyuri (gherkin) Feature: Two bananas Scenario:   Given I have one banana   When I receive one banana   Then I should have two bananas
nodeunit exports.testTrue = function(test) {  test.expect(true);  test.ok(true, ”should be true");  test.done();  };
“Once you work out the social aspects of a problem, the technical  stuff is usually pretty straightforward.” Isaac Schlueter
package.json {      "name":”pk",     "version": "0.0.1",     "dependencies": {         "coffee-script": "0.9.2",         "vows": "0.5.1",         "hamljs": "0.4.5",          "express": "1.0.0",         "less": "1.0.32”     }     }
Cake&Jake
Composition Arrows http://www.cs.umd.edu/projects/PL/arrowlets Reactive Extensions http://bit.ly/bmBeRV
http://github.com/ry/node/wiki/modules Already over 500 modules
JavaScript Sprachraum
JavaScript Sprachraum

Mais conteúdo relacionado

Mais procurados

Perl: Coro asynchronous
Perl: Coro asynchronous Perl: Coro asynchronous
Perl: Coro asynchronous Shmuel Fomberg
 
An Introduction to Celery
An Introduction to CeleryAn Introduction to Celery
An Introduction to CeleryIdan Gazit
 
AngularJS Tips&Tricks
AngularJS Tips&TricksAngularJS Tips&Tricks
AngularJS Tips&TricksPetr Bela
 
Asynchronous programming done right - Node.js
Asynchronous programming done right - Node.jsAsynchronous programming done right - Node.js
Asynchronous programming done right - Node.jsPiotr Pelczar
 
Europython 2011 - Playing tasks with Django & Celery
Europython 2011 - Playing tasks with Django & CeleryEuropython 2011 - Playing tasks with Django & Celery
Europython 2011 - Playing tasks with Django & CeleryMauro Rocco
 
Django Celery - A distributed task queue
Django Celery - A distributed task queueDjango Celery - A distributed task queue
Django Celery - A distributed task queueAlex Eftimie
 
Avoiding Callback Hell with Async.js
Avoiding Callback Hell with Async.jsAvoiding Callback Hell with Async.js
Avoiding Callback Hell with Async.jscacois
 
Why Task Queues - ComoRichWeb
Why Task Queues - ComoRichWebWhy Task Queues - ComoRichWeb
Why Task Queues - ComoRichWebBryan Helmig
 
Any event intro
Any event introAny event intro
Any event introqiang
 
Building Cloud Castles - LRUG
Building Cloud Castles - LRUGBuilding Cloud Castles - LRUG
Building Cloud Castles - LRUGBen Scofield
 
Webrtc mojo
Webrtc mojoWebrtc mojo
Webrtc mojobpmedley
 
Great Developers Steal
Great Developers StealGreat Developers Steal
Great Developers StealBen Scofield
 
Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)xSawyer
 

Mais procurados (20)

JavaScript Promise
JavaScript PromiseJavaScript Promise
JavaScript Promise
 
Perl: Coro asynchronous
Perl: Coro asynchronous Perl: Coro asynchronous
Perl: Coro asynchronous
 
Rack Middleware
Rack MiddlewareRack Middleware
Rack Middleware
 
An Introduction to Celery
An Introduction to CeleryAn Introduction to Celery
An Introduction to Celery
 
A Gentle Introduction to Event Loops
A Gentle Introduction to Event LoopsA Gentle Introduction to Event Loops
A Gentle Introduction to Event Loops
 
AngularJS Tips&Tricks
AngularJS Tips&TricksAngularJS Tips&Tricks
AngularJS Tips&Tricks
 
ES6 generators
ES6 generatorsES6 generators
ES6 generators
 
Asynchronous programming done right - Node.js
Asynchronous programming done right - Node.jsAsynchronous programming done right - Node.js
Asynchronous programming done right - Node.js
 
Europython 2011 - Playing tasks with Django & Celery
Europython 2011 - Playing tasks with Django & CeleryEuropython 2011 - Playing tasks with Django & Celery
Europython 2011 - Playing tasks with Django & Celery
 
Django Celery - A distributed task queue
Django Celery - A distributed task queueDjango Celery - A distributed task queue
Django Celery - A distributed task queue
 
Mojo as a_client
Mojo as a_clientMojo as a_client
Mojo as a_client
 
Avoiding Callback Hell with Async.js
Avoiding Callback Hell with Async.jsAvoiding Callback Hell with Async.js
Avoiding Callback Hell with Async.js
 
Why Task Queues - ComoRichWeb
Why Task Queues - ComoRichWebWhy Task Queues - ComoRichWeb
Why Task Queues - ComoRichWeb
 
Ansible 2.0
Ansible 2.0Ansible 2.0
Ansible 2.0
 
Any event intro
Any event introAny event intro
Any event intro
 
Building Cloud Castles - LRUG
Building Cloud Castles - LRUGBuilding Cloud Castles - LRUG
Building Cloud Castles - LRUG
 
Webrtc mojo
Webrtc mojoWebrtc mojo
Webrtc mojo
 
Great Developers Steal
Great Developers StealGreat Developers Steal
Great Developers Steal
 
Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)
 
Socket.IO
Socket.IOSocket.IO
Socket.IO
 

Semelhante a JavaScript Sprachraum

Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHPGoing crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHPMariano Iglesias
 
JavaScript, Beyond the Curly Braces
JavaScript, Beyond the Curly BracesJavaScript, Beyond the Curly Braces
JavaScript, Beyond the Curly BracesChicago ALT.NET
 
The Beauty Of Java Script V5a
The Beauty Of Java Script V5aThe Beauty Of Java Script V5a
The Beauty Of Java Script V5arajivmordani
 
jQuery Performance Rules
jQuery Performance RulesjQuery Performance Rules
jQuery Performance Rulesnagarajhubli
 
Introducing to node.js
Introducing to node.jsIntroducing to node.js
Introducing to node.jsJeongHun Byeon
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on AndroidSven Haiges
 
Testing Javascript with Jasmine
Testing Javascript with JasmineTesting Javascript with Jasmine
Testing Javascript with JasmineTim Tyrrell
 
Scala 3camp 2011
Scala   3camp 2011Scala   3camp 2011
Scala 3camp 2011Scalac
 
Владимир Мигуро "Дао Node.js"
Владимир Мигуро "Дао Node.js"Владимир Мигуро "Дао Node.js"
Владимир Мигуро "Дао Node.js"EPAM Systems
 
Security Challenges in Node.js
Security Challenges in Node.jsSecurity Challenges in Node.js
Security Challenges in Node.jsWebsecurify
 
Javascript Unit Testing
Javascript Unit TestingJavascript Unit Testing
Javascript Unit TestingPaul Klipp
 
How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014Guillaume POTIER
 
ActiveWeb: Chicago Java User Group Presentation
ActiveWeb: Chicago Java User Group PresentationActiveWeb: Chicago Java User Group Presentation
ActiveWeb: Chicago Java User Group Presentationipolevoy
 

Semelhante a JavaScript Sprachraum (20)

Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHPGoing crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
 
RingoJS
RingoJSRingoJS
RingoJS
 
JavaScript, Beyond the Curly Braces
JavaScript, Beyond the Curly BracesJavaScript, Beyond the Curly Braces
JavaScript, Beyond the Curly Braces
 
ES6: The Awesome Parts
ES6: The Awesome PartsES6: The Awesome Parts
ES6: The Awesome Parts
 
The Beauty Of Java Script V5a
The Beauty Of Java Script V5aThe Beauty Of Java Script V5a
The Beauty Of Java Script V5a
 
The Beauty of Java Script
The Beauty of Java ScriptThe Beauty of Java Script
The Beauty of Java Script
 
Jquery 1
Jquery 1Jquery 1
Jquery 1
 
jQuery Performance Rules
jQuery Performance RulesjQuery Performance Rules
jQuery Performance Rules
 
Introducing to node.js
Introducing to node.jsIntroducing to node.js
Introducing to node.js
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on Android
 
Testing Javascript with Jasmine
Testing Javascript with JasmineTesting Javascript with Jasmine
Testing Javascript with Jasmine
 
JSON and the APInauts
JSON and the APInautsJSON and the APInauts
JSON and the APInauts
 
Scala 3camp 2011
Scala   3camp 2011Scala   3camp 2011
Scala 3camp 2011
 
JS everywhere 2011
JS everywhere 2011JS everywhere 2011
JS everywhere 2011
 
Владимир Мигуро "Дао Node.js"
Владимир Мигуро "Дао Node.js"Владимир Мигуро "Дао Node.js"
Владимир Мигуро "Дао Node.js"
 
Security Challenges in Node.js
Security Challenges in Node.jsSecurity Challenges in Node.js
Security Challenges in Node.js
 
JQuery Basics
JQuery BasicsJQuery Basics
JQuery Basics
 
Javascript Unit Testing
Javascript Unit TestingJavascript Unit Testing
Javascript Unit Testing
 
How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014
 
ActiveWeb: Chicago Java User Group Presentation
ActiveWeb: Chicago Java User Group PresentationActiveWeb: Chicago Java User Group Presentation
ActiveWeb: Chicago Java User Group Presentation
 

JavaScript Sprachraum