~/talk

A Guide To Functional Programming

Talkat ConfrontJS 2022 · on Saturday, 2022-03-26· [javascript, frontend-architecture]
slides:none on file

Claims that functional style cuts bugs and makes code easier to test and read, then shows how with concrete JavaScript code: pure versus impure add and random generators, reversing arrays with the spread operator to avoid mutation, transforming lists with Array.map instead of loops, and minimizing side effects instead of console.logging. Demonstrates React by converting class components to React hooks, models state changes as pure Redux reducers, and handles async effects with Redux middleware and API fetch examples like disabling a button during login.

AI-written summary · about

  1. 0:00Intro
  2. 2:47Basics of Functional Programming
  3. 4:10Functional Languages
  4. 4:43Javascript: Chimera of Paradigms
  5. 5:24BENEFITS OF FUNCTIONAL PROGRAMMING
  6. 8:00Arrow Functions FTW
  7. 8:18Class Components
  8. 9:47Basic Structure
  9. 10:08IMPURE FUNCTIONS
  10. 12:42NOT A PURE FUNCTION
  11. 14:16MUTATED VALUES
  12. 15:08IMMUTABLE VALUES
  13. 16:00BASIC FUNCTIONS AND LOOPS
  14. 16:42HIGHER ORDER FUNCTIONS
  15. 19:10React Functional Component
  16. 19:38Redux Roducers
  17. 20:20Necessary Side Effects
  18. 23:49Using 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.