~/talk

Untangle your code with yield

Talkat Front-Trends 2016 · 2016-05-18..05-20· [javascript, typescript]
links:none on file
slides:none on file

Generators in ES2015 are used to build custom iterables and to control async flow by passing values back into paused functions; the talk shows a working formatter that uses yield unwraps wrapper values to collect errors instead of throwing, salvaging translations and reporting two errors in the demo. It uses writer/reader style composition to avoid threading error lists and context through every call, runs in modern browsers and Node 6, and relies on Babel/regenerator with a regenerator 1KB runtime to support older engines.

AI-written summary · about

  1. 0:00Introduction to generators
  2. 3:10Iterables and iterators explained
  3. 8:13Pausing and state in iterators
  4. 12:58Beyond simple iteration
  5. 15:06Injecting values into generators
  6. 19:42Generators vs promises
  7. 23:21Real-world translation system
  8. 27:59Writers and error handling
  9. 31:37Readers and context passing
  10. 33:45Conclusion and availability
~/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.