Functional Programming For The Anxious Developer
summary
Argues that using pure functions, immutability and statelessness cuts what the brain must track so anxiety drops and working memory frees up, claiming 90% of the benefit comes from those three practices. Shows Ruby examples (Enumerable map/inject), libraries Hamster and Algebric, a persistent flock and a shopping‑cart monoid that merges offline and online carts without mutation, cautions about object‑allocation overhead and recommends benchmarking and using mutable code where performance requires it.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:13A story
- 6:43omg (Maybe lion)
- 7:16Fear
- 8:51best way to optimise working memory is to stop needing to put things in there
- 11:06But Ruby... Right?...
- 11:55Functional programming is just...
- 19:23Avoid Enumerable#each !!! anything useful requires mutation and changing state
- 21:03Let's go deeper
- 29:52Unload working memory
related talks
44mFunctional Programming for Rubyists
24mFunctional programming for fun and profit!!
42mTaking inspiration from the functional world
33mBetter Ruby through Functional Programming
39mFunctional Architecture for the Practical Rubyist
29mFunctional Programming in Plain Terms
39mFunctional Architecture for the Practical Rubyist
40mMake Ruby Functional Again!
