~/talk

Don't Rewrite Your Framework

Talkat RubyConf TH 2026 · 2026-01-31..02-01· [ruby-on-rails]
links:none on file
slides:none on file

Shows concrete Rails features and how they replace hand‑rolled hacks: use context validations to run different rules per step, map address fields to a Value Object via composite to get Address#== working, wire after_add/after_remove to keep a cart total in sync (example works), process records with find_in_batches (default batch size 1,000) and split 200 ids across two workers, prevent races with lock_version optimistic locking or FOR UPDATE inside a transaction, and use Rails 7.1 normalize for standardized attributes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:39Validating fields with context
  3. 5:09Value objects for data
  4. 7:38Side effects with callbacks
  5. 9:28Efficient batch processing
  6. 12:22Concurrent access with locking
  7. 16:04Rails 7.1 value normalization
  8. 17:30Reusable behavior with modules
  9. 18:13Observing app behavior
  10. 20:01Code logic with string inquiry
  11. 21:26Sharing data with current attributes
  12. 22:07Transforming names with inflector
  13. 23:30Splitting routes with draw
  14. 24:35Custom routes with constraints
  15. 25:18Conclusion
~/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.