JavaScript is AsynchroWAT?
summary
A developer story starts with integrating Stripe into Salesforce and discovering JavaScript callbacks block work because responses arrive later; code examples show a blocking AJAX pattern, then a nested callback hell implementation with setTimeout-based waits and ad hoc error checks, a promise-based rewrite with .then/.catch and a pizza promise example, and finally an async/await refactor that returns Promises and reads synchronously; the hair-care analogy maps each async step and the refactors clearly run and improve readability and error handling.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:36Once upon a time...
- 2:01My "LOGIC" is correct!
- 4:53What does synchronous mean?
- 5:29Doing household chores...
- 6:17Asynchronous programming
- 9:30Synchronously...
- 10:29Callbacks!
- 13:21I need to add error handling!
- 21:27In closing...
related talks
49mA Beginner's Guide to Wrangling Asynchronicity in JavaScript
30mActually Understanding Asynchronous JavaScript
42mBeyond Promises: Async Patterns in JavaScript
23mAsync JS
01h 01mJavaScript: Asynchrony
32mThe Evolution Of Asynchronous Javascript
26mNow and .then: Debugging Async JS
14mThe Promised Path to Async, Awaits
