~/talk

The Misconception About Models

Talkat XO Ruby New Orleans 2025 · on Saturday, 2025-09-20· [ruby-on-rails]
links:none on file
slides:none on file

Central claim: a model is a code representation of something outside your codebase, not a folder or pattern slogan. Examples use Rails/ActiveRecord, Sinatra, Stripe/payments, headless CMS and service objects; ActiveRecord is a row in a SQL table and therefore one kind of model. At small scale everything can live in models, but at scale (350 models and 50 service integrations) organization matters. A payments API is implemented as a service/plain Ruby object and it works; not every model needs a database.

AI-written summary · about

  1. 0:00Models and misconceptions
  2. 4:28What is a model
  3. 7:17Code vs Active Record
  4. 10:07MVC non-model parts
  5. 12:33Service objects as models
  6. 16:24Where models live
  7. 20:39Model granularity
  8. 24:54Q&A
~/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.