Clojure vs Design Patterns
summary
Claim: many Gang of Four patterns are unnecessary in Clojure or are simpler when expressed with its primitives. Demonstrations use actual code in a REPL: strategy via higher-order functions (choose-shave-technique returns a function called on a yak), adapter via extend-protocol (extend-protocol barking-dog on PersistentVector to add bark), and template method as higher-order function (update-account-status taking get-fn and save-fn). Examples run interactively and show concise, working replacements for classes, interfaces, and glue objects.
AI-written summary · about
chapters (3)
related talks
45mDesign Patterns in Scala
40mDesigning in Clojure - an experience report
42mDesign in Practice in Practice
01h 03mJava Design Patterns 2022
25mDesign Patterns Unleashed: Building Elegant and Confident Solutions
43mPlain Pattern Language
48mElephants, Patterns, and Heuristics -
28mThe Timeless Way of Building
