All I needed for FP I learned in High School Algebra
summary
Maps algebraic properties onto everyday code and shows how to derive and enforce them: uses Clojure examples (reduce, tuples for sum/count) to implement an associative aggregator for averages and adds an identity to make it a monoid, uses property testing with test.check to assert commutativity and grouping, demonstrates idempotent updates for button/state via hashmaps to achieve idempotence, and explains how these properties solve distributed issues like out-of-order delivery, duplicates, and safe serialization/deserialization.
AI-written summary · about
chapters (4)
related talks
01h 03mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 4 of 6
38mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 5 of 6
37mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 6 of 6
49mRelax, It's Just FP
51mHitchhiker's Guide to Functional Programming
49mA whirlwind tour of functional programming in Clojure
31mWhat I Learned about FP when Writing a Book About It
54mLaziness, trampolines, monoids and other functional amenities
