Share
Embed
Franziska Klingner
FrontFest
November 21, 2017
Transcript
24 slides
-
The ugly Duckling Conquering the World Why? JavaScript and Node.js
Why the ugly duckling is conquering the world Franziska Klingner Frontfest, Moscow 18th November 2017 Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Once upon a
Time ... a Duckling was Born 1995 - Tough Competition Microsoft works on something Sun Microsystems wants to bring Java to the Browser (Netscape Navigator) Netscape Communications wants to use the functional language Scheme Netscape charges Brandon Eich to create a prototype for the new language for browser; he build JavaScript in 10 days Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Once upon a
Time ... a Duckling was Born ”JavaScript had to ’look like Java’ only less so, [it had to] be Java’s dumb kid brother or boy-hostage sidekick. Plus, it had to be done in ten days or something worse than JavaScript would have happened” — Brendan Eich, Creator of JavaScript Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? The Duckling was
a good Swimmer ... ”Did the job” of changing content/styling dynamically (AJAX) Easy to learn due to C/Java like syntax, no memory mgmt and no threads Fault resistant Dynamically typed Automatic semicolon insertion Variadic functions Resource efficient waiting for clicks Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? ... but the
Duckling was different ... Scripting language Event based Functions as first class objects Prototypical Inheritance Function scope Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? ... and a
bit weird Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? ... and a
bit weird Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript in the
(mobile) Browser ... from small manipulations in big HTML templates Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript in the
(mobile) Browser ... to no real HTML templates at all Single-Page-App Frameworks React Angular Vue Ember ... Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Not only the
front-end frameworks but also the tooling is written in JavaScript Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Node.js - JavaScript
on the Server Additional Functionality in Node.js File system management Module Loading Process Management HTTP/HTTPS Server and Socket Handling Streams Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Node.js at Netflix
Every device running Netflix connects to a Node.js service for that device type [3] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Node.js at Uber
Uber also uses Node.js for matching millions of drivers and customers [4] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Node.js at Twitter
Twitter switched from Scala to Node.js for all its mobile browser traffic [5] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript for Desktop
Applications Examples for Electron-Apps (Node.js, Browser-JS, HTML/CSS) [6] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript (Node.js) for
IoT-Devices and Robotics Many mircocontrollers can programmed with JavaScript due to projects like ”Jonny Five - Robotics & IoT Platform” [7] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript (Node.js) for
IoT-Devices and Robotics Simple example of controlling an LED with ”Jonny Five” [8] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript can run
everywhere, where C++ can be executed Someone with too much time made parts of JavaScript run on a NES [9] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? JavaScript is event-based
and allows for ”non-blocking” asyncronous processing what makes it efficient Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? NPM provides a
central Registry for JS Modules which are created by a big, active Community >¿500.000 packages, 3.3 billion downloads per week, 35.000 updates and 4.500 new packages per week [10] [11] Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Many big Firms
invest Money and smart People in Javascript/Node.js and its Tooling Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? And the Moral
of this Story ... JavaScript might never become a white swan but it is on an unbroken winning streak nevertheless You already know front-end JS? ⇒ Play around with Node.js You already tried Node.js? ⇒ Use it in production Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Sources I www.telegraph.co.uk/technology/internet/10663451/
The-early-days-of-25-websites.html www.ekki.bplaced.de/maerchen/bildgeschi/entlein/ entlein_f.htm www.youtube.com/watch?v=H_iK7jww_j8 blog.risingstack. com/node-js-examples-how-enterprises-use-node-in-2016/ nodejs.org/static/documents/casestudies/ Nodejs-at-Uber.pdf www.slideshare.net/EdurekaIN/communication-in-nodejs twitter.com/necolas/status/829128165314306048 electron.atom.io/ www.youtube.com/watch?v=Qkkmz5VZoMQ Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world -
The ugly Duckling Conquering the World Why? Sources II johnny-five.io/
https://www.youtube.com/watch?v=D9ZbqnffS7c https://ashleygwilliams.github.io/npm-by-the-numbers http://www.modulecounts.com/ Franziska Klingner Frontfest, Moscow JavaScript and Node.js - Why the ugly duckling is conquering the world