~/talk

A Case for Use Cases

Talkat RubyConf AU 2015 · 2015-02-04..02-07· [ruby-on-rails, ruby]
speakerdeck:shevaun
slides:none on file

Envato implements a use‑case pattern: one user action per plain Ruby classes with a shared perform entry point and ActiveModel‑based success queries, moving side‑effects into small step objects and giving controllers thin callers. An empty ActiveRecord subclass already exposes 214 methods, so moving business rules out reduces coupling, reveals features, and makes integration tests assert side effects (emails sent, sales count incremented). A local gem (interaction) and existing interactor gems show the approach works in production.

AI-written summary · about

  1. 0:00Introduction
  2. 3:00New Requirements
  3. 6:34Definition
  4. 7:47Implementation
  5. 10:17Lessons Learned
  6. 13:47Use Case Patterns
  7. 15:38Verdict
~/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.