Web Development


"From zero to web developer hero"



Hack Your Career


Hack.your.Career

Agenda

  • 04.11 - A brief introduction to modern JavaScript

  • 18.11 - NodeJS for Dummies

  • 25.11 - ReactJS – creating immutable interfaces

  • 02.12 - UI Development

  • 09.12 - ?

Node.js for dummies

What are we going to talk about today:

  • A bit too short introduction of Node
  • What makes it so easy...
  • ...and why you should be careful
  • Beer-as-a-Service
  • Microservices
  • Q&A

Let's talk Node

Did we even need another programming language?

  • Brings event-driven programming to web servers - no need for threading
  • Lightweight
  • Stateless
  • Non-blocking IO
  • Perfect for microservices
  • NPM

Let's talk Node

Why we use only one thread...
And why it does NOT matter?




  function przygotujPiwo(chmiel, callback) {
    dodajChmiel(chmiel, function(brzeczka) {
      const temperatura = '10'; //stopnie Celsjusza
      schładzajBrzeczke(brzeczka, temperatura, function(schlodzonaBrzeczka) {
        dodajDrożdżeDoBrzeczki(drożdze, brzeczka, function(piwo) {
          callback(piwo);
        });
      });
    });
  });
          

So...
let's get our hands dirty



Beer-as-a-Service

Not the service we deserved, but the one that we needed

- some guy from the internet

LIVE DEMO

Need another reason to learn Node?

Program everything!

Community

GitHub Audio
npm

Bright future

  • First stable Node.js release (0.10) - 11 March 2013
  • First stable PRODUCTION release (4.0.0) - 08 September 2015
  • First stable React release (0.3.0) - 29 May 2013
  • First stable Cylon.js release (1.0.0) - 8 April 2015
  • MICROSERVICES

That's all cool and stuff... but what are the things that might go wrong?

Let's use example:

Poke Chat failure

Questions?

Give us feedback!