-
Notifications
You must be signed in to change notification settings - Fork 1
Advanced JavaScript
Pritesh Patel edited this page May 22, 2019
·
1 revision
https://app.pluralsight.com/library/courses/advanced-javascript/
- an async pattern - can lead to "callback hell" - callback nesting or continuation style
- callback/continuation leads to inversion of control (e.g. consider calling a third-party lib and passing it a callback)
- separate callbacks
- node-style / error-first style
- nested-callback tasks
- ...
- McDonalds order metaphor
- "continuation events" metaphor
- handing back a promise "un-inverted" the inversion of control of callbacks
-
Promise
are built-in as of ES6