~/talk

Design Patterns in Scala

Talkat JavaDay 2013 · on Saturday, 2013-10-19· [scala, design-collaboration]
links:none on file
slides:none on file

Compares classic patterns to concrete Scala constructs and tradeoffs: companion object apply replaces static factory methods, lazy modifier gives thread-safe deferred init, and object implements singletons with on‑demand init. Shows adapters as implicit classes, decorators via traits with abstract override, case classes for value objects, Option instead of null objects, by‑name parameters for Command, partial functions + orElse for Chain, and self types for dependency injection; notes Java interop and pros/cons (conciseness, static checks, some loss of control).

AI-written summary · about

  1. 0:00Introduction
  2. 2:39Factory method
  3. 6:14Lazy initialization
  4. 9:13Singleton
  5. 12:00Adapter
  6. 14:11Decorator
  7. 18:34Object
  8. 22:25Null Object
  9. 25:32Strategy
  10. 30:53Chain of Responsibility
  11. 33:56Dependency Injection
~/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.