~/talk

Array.map is more interesting than you probably think!

Talkat JSFoo 2019 · on Thursday, 2019-01-10· [javascript]
slides:none on file

Live coding shows how Array.map’s empty-array behavior becomes a pattern for safely traversing nested properties by wrapping values in a safe wrapper (Just/Nothing) that maps like an array so null checks vanish the talk implements a tiny functor type and adds flatMap as monad to avoid nested containers demonstrates the same idea with promises and shows the code running end to end with real examples from Elm jargon and npm maybe packages

AI-written summary · about

  1. 0:00Start
  2. 1:51Error-free programs
  3. 10:37Functors are objects with .map
  4. 18:25Monads are functors with .flatMap
  5. 19:55Monads in the wild
~/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.