JavaScript &

JavaScript

General-purpose programming language.

The scripting language of the Web.

!=

A platform to run JavaScript.

Runs outside of a browser, no sandboxing. Can access the host's network, file system, anything.

General purpose: Web servers, CLI programs, compilers, game servers, IoT, static site generators etc.

  • Very easy to learn
  • JavaScript is constantly improving (features & perf)
  • npm - the largest packages ecosystem
  • Cross-platform (develop in Linux, OS X and Windows)
  • "Universal"/"Isometric" JavaScript - share code between server and client
  • Real-time applications
  • IoT
  • Open source
  • LTS support

Why 

The package manager for JavaScript.

Over 270,000 packages.

npm install lodash --save

www.modulecounts.com

Build cross-platform desktop apps with web technologies and Node.js.

Use HTML, CSS, and JavaScript with Chromium and Node.js to build your app.

IoT

Johnny-Five

IoT

var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
  // Create an Led on pin 13
  var led = new five.Led(13);
  // Blink every half second
  led.blink(500); 
});

https://github.com/rwaldron/johnny-five

LTS

https://github.com/nodejs/LTS

Show me the code!

ECMAScript 2015

Remove boilerplate, add syntactic sugar

  • Arrow functions
  • Class syntax
  • Enhanced object literals
  • Template strings
  • Default parameters
  • Rest Parameters
  • Destructuring parameters
  • Destructuring assignment
  • Spread operator
  • Binary and octal literals
  • Block scoping (let, const)
  • (Weak)Map + (Weak)Set
  • Modules
  • Symbols
  • Subclassable Built-ins
  • Unicode
  • Promises
  • Generators, iterators, for...of
  • Proxy and Reflect APIs
  • new Math, Number, String, Array and Object methods

New features and
built-ins

Thanks!

https://slides.com/fabriciomatte/javascript-and-nodejs

is not the future.

is the present.

References

  • https://nodejs.org/en/
  • https://www.npmjs.com/
  • http://electron.atom.io/
  • https://atom.io/
  • https://github.com/rwaldron/johnny-five
  • https://github.com/nodejs/LTS
  • http://www.modulecounts.com/

https://slides.com/fabriciomatte/javascript-and-nodejs

JavaScript & Node.js

By Fabrício Matté

JavaScript & Node.js

#JavaScript #nodejs

  • 1,541