~/talk

Practical functional programming: pick two

Talkat JSConf EU 2014 · 2014-09-13..09-14· [javascript, frontend-architecture]
slides:none on file

Argues that promises and lists are the same composable container: promise is a container and promise.all turns a list of promises into a promise of a list; shows promises let IO stay parallel while letting code treat results as immutable values. Demonstrates lazy processing with Node streams implemented as map/filter/take and streams as lazy lists (sets highWaterMark to 0 so only needed data is read). Builds an IRC client using pure stream transforms and merge/sampleBy and it works without global state.

AI-written summary · about

  1. 0:00Introduction to practical functional programming
  2. 1:29What FP really means
  3. 5:53Promises as immutable values
  4. 9:11Composing promises as containers
  5. 14:08Laziness in Haskell and JavaScript
  6. 17:12Streams to functional arrays
  7. 19:28IRC client in FP
  8. 25:40Summary
~/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.