~/talk

Functional Programming in JS: What? Why? How?

Talkat HolyJS 2017 Piter · 2017-06-02..06-03· [javascript]
slides:none on file

Claims that pure functions (avoid side effects and immutability) make code more predictable and testable, and demonstrates concrete rewrites: an impure vs a returning greet; mutate‑in‑place vs returning new conf; array-as‑trie persistent structures with structural sharing to limit copying. Tools shown: Mori, Ramda, Immutable.js (compose/pipe, map/filter/reduce “map‑reduce sandwich”). Benchmarks and caveats: recursion can be ~2× slower on 1,000 items and needs tail‑call or better data structures for performance.

AI-written summary · about

  1. 0:00Start
  2. 0:14Functional Programming: What? Why? How?
  3. 6:08Declarative this is what I want I don't care how you do it
  4. 35:24Persistent data structures Mori
~/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.