Functional-Light JavaScript

Functional-Light JavaScript

What are the core principles of FP that JavaScript developers can use to make more understandable and reason-able code?

35761e3936deba2f8189c2d20982c771?s=128

Kyle Simpson

July 27, 2016
Tweet

Transcript

  1. 3.
  2. 5.
  3. 7.
  4. 8.
  5. 9.
  6. 10.
  7. 12.
  8. 13.
  9. 14.
  10. 15.
  11. 16.
  12. 17.

    Closure is when a function "remembers" the variables around it

    even when that function is executed elsewhere.
  13. 18.
  14. 19.
  15. 20.
  16. 21.
  17. 22.
  18. 24.
  19. 25.
  20. 26.
  21. 29.
  22. 30.
  23. 32.
  24. 33.
  25. 35.
  26. 36.
  27. 37.
  28. 38.
  29. 39.
  30. 40.
  31. 41.
  32. 42.
  33. 43.
  34. 44.
  35. 45.
  36. 46.
  37. 47.
  38. 48.

    RECAP: ‣ Pure Functions (side effects) ‣ Composition ‣ Immutability

    ‣ Closure ‣ Recursion ‣ Lists (map, filter, reduce)
 (fusion, transducing)