~/talk

Design Patterns in Dynamic and Functional Languages

slides:none on file

Claims that many GoF patterns either disappear or change implementation in modern languages, with concrete examples: closures replace Command (Groovy/Ruby blocks used instead of command objects), iterators are built into Groovy/Ruby, builders use method_missing DSLs (recipe DSL via Integer metaclass), adapter solved by runtime interface switching in Ruby, decorator implemented with modules, memoize functions (built-in) give orders-of-magnitude speedups, and lazy sequences produce infinite collections and efficient pipelines (Clojure/Scala/Java 8).

AI-written summary · about

  1. 0:00Introduction to modern patterns
  2. 2:25Iterator pattern in modern languages
  3. 4:11Command pattern with closures
  4. 6:21Strategy pattern simplified
  5. 8:12Builder pattern with method missing
  6. 11:02Template method flexibility
  7. 14:40Interpreter pattern and DSLs
  8. 22:28Factory pattern edge cases
  9. 24:36Decorator pattern in Ruby
  10. 29:55Adapter pattern with open classes
  11. 34:56Null object pattern in Ruby
  12. 37:46Functional programming patterns
  13. 41:36Filter map and reduce in Java
  14. 45:32Flatten and flatMap explained
  15. 49:07Closures and state management
  16. 51:55Memoization and caching
  17. 53:42Laziness in functional languages
  18. 55:27Summary and future insights
~/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.