~/talk

JavaScript Generators — Practical Use Cases

TalkinFrenchat Devoxx France 2023 · 2023-04-12..04-14· [javascript]
links:none on file
slides:none on file

A practical talk about using JavaScript generator functions to build a universal user-list component that yields one transformed item per scroll to keep DOM nodes minimal and avoid full-array map/filter operations. It shows using generators for lazy evaluation, sending values back into the generator for producer/consumer interaction, and supporting early-abort/early-complete to cancel or short-circuit work, with a prototype that implements stream-like per-item transforms to simplify pagination and cancelable async flows.

AI-written summary · about

  1. 0:00Introduction
  2. 7:54Generator functions
  3. 18:00Advanced generator concepts
  4. 25:49Practical use cases
  5. 29:05Conclusion & Q&A
~/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.