~/talk

Go Pro with POROs

Talkat Rocky Mountain Ruby 2023 · 2023-10-05..10-06· [ruby, ruby-on-rails]
slides:none on file

Provides concrete, actionable patterns: Service objects that expose a single run/call method and return errors, API wrappers that hide HTTParty‑style requests (examples include a MyRun fetcher and a Twitter poster used end‑to‑end), and a Heroku Connect + Salesforce ActiveRecord wrapper. Shows virtual domain models that capture API results and solved a tricky finance projection dependency, form objects using ActiveModel, Draper/ViewComponent presenters, FastJsonAPI serializers, and a Decanter transformer for strong params and coercion.

AI-written summary · about

  1. 0:00Introduction
  2. 4:20Database wrappers foundation
  3. 8:53Modules for organization
  4. 14:53What is a PORO
  5. 15:35Business logic services
  6. 20:09API wrappers for services
  7. 22:38Virtual domain models
  8. 26:50Request and presentation objects
  9. 34:38Summary
~/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.