~/talk

Composition

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby, component-design]
slides:none on file

Shows a concrete way to stop inventing classes and start composing behavior: models a Topologist example in Haskell and Ruby, rewrites inheritance as Haskell-inspired function pipelines and lightweight objects that respond to call, demonstrates lifting to handle failures with Either-style error handling, and refactors a real SMS order service into small, testable, immutable steps. Expect runnable patterns, code shapes, and pros/cons for adopting this style in Ruby.

AI-written summary · about

  1. 0:00Intro
  2. 4:01Category Theory
  3. 4:51Object Composition
  4. 10:31Observations
  5. 12:11Function Composition
  6. 16:42Advantages
  7. 24:18Topologists in Haskell in Ruby
  8. 27:21Embedded Haskell
  9. 31:33Example - Medlink
  10. 34:18Example - Composed
  11. 37:02Example - Extracted
  12. 38:27Example - Maybe
  13. 40:39Example - Either
  14. 42:00Example - Logging
  15. 42:53Extending Composition
~/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.