~/talk

If you know map, I will teach you monads

Talkat Nordic.js 2016 · 2016-09-08..09-09· [react]
slides:none on file

Starts from the concrete claim that map is a capability and demonstrates it across four implementations: array.map, a recursive map_tree function, an async stream implemented with setTimeout and a bacon.Bus, and ES6 promises. Shows a real Google Translate fetch returning Promises via the Google Translate API then flattens them into a stream with bacon.fromPromise, proving map vs flatMap behavior with working examples and printing translated capitalized words (mission success).

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Functors and monads
  3. 2:30Map concept
  4. 12:15Mapping arrays and trees
  5. 15:50Streams as functors
  6. 22:12flatMap and monads
  7. 27:23Streams and promises as monads
  8. 32:07Summary
~/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.