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. FUNCTIONAL-LIGHT JAVASCRIPT KYLE SIMPSON @GETIFY

  2. SIDE EFFECTS

  3. None
  4. PURE FUNCTIONS

  5. None
  6. COMPOSITION

  7. None
  8. None
  9. None
  10. None
  11. IMMUTABILITY

  12. None
  13. None
  14. None
  15. None
  16. CLOSURE

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

    even when that function is executed elsewhere.
  18. None
  19. None
  20. RECURSION

  21. None
  22. None
  23. PTC PROPER TAIL CALLS

  24. None
  25. None
  26. None
  27. LISTS If you can do something awesome, keep doing it

    repeatedly.
  28. MAP: TRANSFORMATION

  29. None
  30. None
  31. FILTER: EXCLUSION

  32. None
  33. None
  34. REDUCE: COMBINING

  35. None
  36. None
  37. FUSION

  38. None
  39. None
  40. TRANSDUCE

  41. None
  42. None
  43. None
  44. None
  45. None
  46. None
  47. None
  48. RECAP: ‣ Pure Functions (side effects) ‣ Composition ‣ Immutability

    ‣ Closure ‣ Recursion ‣ Lists (map, filter, reduce)
 (fusion, transducing)
  49. FUNCTIONAL-LIGHT JAVASCRIPT KYLE SIMPSON @GETIFY