The Async nightmare
summary
A sequence of live demos shows that making I/O non-blocking removes freezes but multiplies concrete UX and implementation states: blocking WPF demo proves responsiveness; JavaScript examples show disabled buttons, progress bars, skeleton screens, optimistic updates and ambient cancellations where leaving a view breaks unfinished work. Code patterns include callbacks, promises, async/await, cancellation tokens and libraries like Axios / Bluebird and Rx for “latest-only” selection to avoid race conditions. No silver bullet emerges; demos and GitHub code expose the real edge cases and required backend state.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:07Blocking UI demo
- 2:34Async in frontend
- 3:58Async problems overview
- 5:43Failed async demo
- 7:10UX states and progress
- 8:15Complete async example
- 9:44Design complexity explosion
- 12:11Login form complexity
- 13:34Register form demo
- 14:36Determinate vs indeterminate progress
- 16:01Cancellation challenges
- 17:04Skeleton screens
- 18:49Ambient cancellations
- 20:33User leaving context
- 21:58Race conditions demo
- 24:09Long-running backend ops
- 27:19Complexity limits
- 29:05Mobile connectivity issues
- 30:49Optimistic updates
- 31:30Conclusion and takeaways
- 32:17Q&A session
