~/talk

Event-driven Programming 101

Talkat Developer Summit 2020 · 2020-11-21..11-22· [software-architecture]
links:none on file
slides:none on file

Claims that replacing a continuous animation loop with event handlers (instead of a constant requestAnimationFrame-style render) stops needless 60fps rerenders, freeing CPU and keeping responsiveness the same while lowering frame churn. Explains the JavaScript event loop with timers moving to a callback queue, warns about blocking the loop and callback hell, and recommends debouncing, Promises/async, worker threads and bubbling custom events from the lowest DOM node.

AI-written summary · about

  1. 0:00Introduction to event-driven programming
  2. 4:27What are events and triggers
  3. 9:47Event loop mechanism explained
  4. 12:39Advantages and disadvantages
  5. 14:31Avoiding event loop pitfalls
  6. 16:40Custom events best practices
  7. 18:24Combining paradigms in mature systems
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.