~/talk

A Guide To Functional Programming

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [functional-programming]
slides:none on file

Covers how writing pure functions and using immutable values in JavaScript makes code predictable, easier to test and reuse; shows concrete fixes: replace mutating for‑loops with map/reduce, use the spread operator to avoid array mutation, and drop class components for React hooks to eliminate this binding. Demonstrates handling async work with Promise.all and observables/epics (and mentions redux‑saga) using a Google Timezone API example and a working Black Friday countdown, and explains middleware for side effects.

AI-written summary · about

  1. 0:00Start
  2. 1:14Basics of Functional Programming
  3. 5:13Arrow Functions FTW
  4. 5:43Class Components
  5. 6:56Basic Structure
  6. 7:31IMPURE FUNCTIONS
  7. 10:21PURE FUNCTION?
  8. 12:32IMMUTABLE VALUES
  9. 14:03BASIC FUNCTIONS AND LOOPS
  10. 14:48HIGHER ORDER FUNCTIONS
  11. 16:47React Functional Component
  12. 17:25Redux Reducers
  13. 19:27Necessary Side Effects
  14. 21:00Extracting Non-Functional Code
  15. 21:56Using Middleware Functions
~/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.