~/talk

Designing APIs: Less Data is More

Talkat RailsConf 2021 · 2021-04-12..04-15· [ruby-on-rails]
slides:none on file

Designs a minimal blogging platform (authors, posts, comments) and claims smaller APIs save real work: exposing an email field forces deprecation cycles and client coordination, adding a reviewer relationship creates N+1 and performance costs, making update-comment accept a post_id invents unsupported UI flows, and omitting pagination limits becomes a scaling bug. Advocates schema-first, iterative delivery, redundant fields elimination and a strict to loose policy so additions are cheap and removals avoid breaking clients.

AI-written summary · about

  1. 0:00Introduction
  2. 3:03Dont expose redundant fields
  3. 7:06Dont expose redundant relationships
  4. 11:53Dont expose redundant input fields
  5. 15:30Avoid extra flexibility
  6. 18:36Defensive programming
~/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.