~/talk

Principles of Clean Functional Programming

Talkat LambdaConf 2017 · 2017-05-25..05-27· [developer-experience]
links:none on file
slides:none on file

Practical rules and concrete examples show how to make functional code easier to read: prefer small named functions, factor out repetition, isolate IO and keep most functions pure, use higher‑order functions instead of recursion when possible, and avoid jumping out of and back into monads. Examples use Scala with some JavaScript; a slides image is runnable as docker run --rm --tip 80:8000 kbielefe/clean-fp and serves the examples. One surprising metric: a production microservice reports recursion zero times.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26About Karl
  3. 4:54General Notes
  4. 9:02Avoid Repetition
  5. 10:58Dont Nest Excessively
  6. 13:33JavaScript Example
  7. 15:02Pure Functions
  8. 16:33Example
  9. 20:55Pattern Matching
  10. 22:24When to use Pattern Matching
  11. 23:36Dont repeat yourself
  12. 25:40Dont overuse lambdas
  13. 26:06Dont use lambdas for everything
  14. 28:23Dont jump out and back in
  15. 28:46For comprehension
  16. 30:24For iteration
  17. 30:37Recursion
  18. 33:56When to use recursion
  19. 36:52Loop indices
  20. 39:15Factor out loop structures
  21. 39:43Tree traversal
  22. 41:14Relationships between objects
  23. 42:57Mutability
  24. 45:24Summary
~/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.