~/talk

The Magic of Custom Event Emitters

Talkat CascadiaJS 2014 · 2014-07-31..08-01· [javascript]
slides:none on file

Builds a tiny custom event emitter from scratch that fits in about dozen lines and replaces Node's EventEmitter for browser use, shows queuing of emits when no listeners exist, uses arrays for applyable args, and returns listener return values. Adds two concrete features by mixing modules: wildcard listeners to observe every event and inheritance/bubbling so emits propagate up a hierarchy. Demos run live and show the wildcard and bubbling behavior working.

AI-written summary · about

  1. 0:00Intro
  2. 0:31introduction
  3. 0:45fight complexity
  4. 2:14pattern recognition
  5. 7:33reinventing the wheel
  6. 9:00building an event emitter
  7. 14:24what are good features
~/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.