Promises Are Terrible; Start Using Promises
Between callbacks and Promises, Heroku’s Node.js platform owner Hunter Loftis prefers callbacks - they’re simpler. However, he urges everyone, module authors and app developers, to adopt Promises for all their current work, so the node community can have something much better in the near future.
The TC39 async/await proposal is currently at stage 3 ("Candidate"), and is scheduled for stage 4 ("Finished") by the end of November.
Google's V8 team has been making progress with their draft implementation, and it may even be available behind a feature flag in node 7.
With async/await, async workflows will be easier to write, read, and reason about in JavaScript - a pain that we've all felt for a long time.
There will be no more need for bandaids like async, Bluebird, or co, and modern frameworks like Koa will finally be pleasant to work with.
But none of this will be accessible to anyone whose apps and modules are still based on callbacks,
so this talk will show how to move from callbacks, to Promises, then finally to async/await - and the future of JavaScript!
EVENT: Nodevember, November 2016
SPEAKER: Hunter Loftis
PERMISSIONS: The original video was published on Nodevember YouTube channel with the Creative Commons Attribution license (reuse allowed).
ORIGINAL SOURCE: https://www.youtube.com/watch?v=AFhmbpGaFr0&t=6s
Other Videos By Coding Tech
2017-11-06 | SVG CAN DO THAT?! |
2017-11-05 | WebAssembly Demystified |
2017-11-02 | WordPress + PWA = Progressive Web Sites |
2017-10-31 | How To HACK A Node App |
2017-10-30 | Performance Limitations of React Native and How to Overcome Them |
2017-10-28 | A Skeptics Guide To Functional STYLE JavaScript |
2017-10-27 | Has The Age Of Quantum Computing Finally Arrived? |
2017-10-27 | The JavaScript Starter Kit Manifesto |
2017-10-26 | Are You a SOLID Developer? |
2017-10-24 | Blasting React Into Space: Building Fluid Interfaces With React and WebGL |
2017-10-20 | Promises Are Terrible; Start Using Promises |
2017-10-19 | Deep Dive Into Computer Vision |
2017-10-18 | Machine Learning For Software Developers |
2017-10-15 | WebGL In Action! |
2017-10-12 | THIS IS NATIVESCRIPT! |
2017-10-10 | ReactJS - Django App Development Workshop |
2017-10-08 | Discovering JavaScript |
2017-10-07 | Toward A Better Front End Architecture: ELM |
2017-10-06 | Building UI At Enterprise Scale With Web Components |
2017-10-04 | The Reusable JavaScript REVOLUTION |
2017-09-30 | Don’t Be Scared Of Functional Programming |