~/talk

The Boring Bits Bite Back

Talkat Helvetic Ruby 2024 · on Friday, 2024-05-17· [software-architecture]
links:none on file
slides:none on file

A Rails pet‑care app called ptrax Rails app grows from simple owner/caretaker checks to dozens of ad‑hoc role conditionals, a policy refactor that briefly tidies controllers, then a customer demand for custom roles that triggers a 6–12 months rewrite and loses an enterprise deal. Concrete fixes: store roles via join tables, avoid sprawling policy methods in favor of a centralized permission model (example gem: CanCanCan), and keep actions CRUD‑ish so permissions stay readable and editable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Why authorization matters
  3. 3:12Building Ptrax app
  4. 7:52Policy authorization pattern
  5. 13:48Enterprise customer demands
  6. 14:51Three proposals for better design
  7. 20:31Key takeaways and advice
~/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.