~/talk

The Ruby Module Builder Pattern

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [ruby-on-rails]
slides:none on file

Shows how to turn Module into a configurable template: subclass Module and use an initializer that defines methods so each included instance carries its own configuration and closures for encapsulation. Replaces brittle bootstrap/anonymous-module patterns used in device/rails with fewer lines and predictable super chains. Applied to the Mobility translation gem to support multiple storage back ends from one interface, echoed by similar refactors in Alchemist and dry-equalizer, and the blog post drew ~30–40k views.

AI-written summary · about

  1. 0:00Introduction to modularity
  2. 2:16Modular design principles
  3. 6:00Ruby module limitations
  4. 10:46Evolution of module patterns
  5. 20:06The module builder pattern
  6. 25:51Practical implementation
  7. 30:43Reflection and conclusion
  8. 33:29Q&A and closing
~/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.