~/talk

"Business Logic in Ruby"

Talkat RubyConfBY 2019 · on Saturday, 2019-04-06· [ruby-on-rails, software-architecture]
links:none on file
slides:none on file

A practical path from Smalltalk and Java habits into Rails shows concrete patterns for extracting business logic out of ActiveRecord: CQRS split into reader/writer models with events, event sourcing for the write model, and implementing workflows as state machines that can be tested and mutation‑tested with the provided GitHub repo. Experiments compare aggregate roots, polymorphic state objects, duck typing, and DCI via Module#extend and clone hack—the latter works but creates allocation and method‑dispatch costs. Recommendations: DDD, event sourcing, and grammar/property testing.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:10Business logic in Ruby
  3. 7:42CQRS and splitting models
  4. 11:17Aggregate root pattern
  5. 14:47Polymorphic aggregates
  6. 20:06Data Context Interaction
  7. 27:57Conclusions and takeaways
  8. 32:32Q&A session
~/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.