~/talk

Clojure vs Design Patterns

Talkat LambdaConf 2015 · 2015-05-22..05-24· [design-collaboration]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 3:26Strategy Pattern
  3. 7:17Adapter Pattern
~/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.