THE BAD SMELL

SO WHAT?

Hello, Node.js!

Image: 123rf.com

OOOOPS, ASYNC!

Image: http://neutralgroundnews.com/

Promise.resolve("World").then(console.log); 
console.log("Hello");
Hello
World
undefined
doSomething();
doSomethingElseAsync();
doSomethingUsefulThisTime();
doSomethingAsync();
doSomethingElseAsync();
doSomethingUsefulThisTimeAsync();

I PROMISE!

PROMISES

  • HARD LEARNING CURVE FOR NON-ASYNC DEVELOPERS

  • NEED TO CHANGE THE WAY YOU READ CODE

  • NEED TO CHANGE THE WAY YOU DEBUG

  • HANDLE UNRESOLVED PROMISES

  • THATS A GREAT ADVENTURE!

PROMISES WILL SAVE US!

NODE.JS > PHP ?

async > sync ?

70

NODE.JS

  • JS  EXPERIENCES THE SECOND YOUTH

  • THINGS THAT ARE PRETTY COMMON IN PHP ARE STILL NEW IN JS

  • EASILY TRANSFER YOUR EXPERIENCE TO ANOTHER LANGUAGE

  • FLEXIBLE: UNIVERSAL APPS, WEB/MOBILE/DESKTOP BACKEND

  • HEY, SUPPORT THE COMMUNITY!

PHP

  • MATURE LANGUAGE AND MODERN TECHNIQES

  • FRAMEWORK WAR IS ALMOST OVER

  • MATURE DEVELOPMENT PROCESS

  • LESS FREQUENT BC-CHANGES

RIGHT TOOL FOR RIGHT JOB

SUMMARY

THINGS TO REMEMBER

  • BOTH LANGUAGES FOLLOW JAVA TRENDS

  • NEW LANGUAGE IS ANOTHER EXPERIENCE

  • DONT FOCUS ON TOOLBOX, FOCUS ON THE PROBLEM

  • USE YOUR EXPERIENCE TO CHALLENGE STATUS QUO

THINGS TO REMEMBER

  • NODE.JS IS ALREADY WELL KNOWN SOLUTION

  • PHP IS STILL WIDE USED ON PRODUCTION

Tomasz Banasiak

http://banasiak.pro

RST.software

Made with Slides.com