~/talk

Designing a Great Ruby API - How We're Simplifying Rails 5

Talkat RailsConf 2015 · 2015-04-21..04-23· [ruby-on-rails, ruby]

Describes designing and shipping a concrete replacement for ad hoc attribute casting in Rails by extracting a reusable type object, adding lazy and strict APIs, and layering attribute decorator and attribute collection objects to replace the giant case statements that lived on the columns hash. Tests guide incremental refactors, many changes land in 4.2 with the API becoming public in Rails 5, bugs drop significantly, and performance stays roughly the same after eliminating string-keyed hashes and consolidating behavior.

AI-written summary · about

  1. 0:00Start
  2. 0:45Identifying Holes in Your API
  3. 4:13Warning! Rails Internals Ahead Not for the faint of heart!
  4. 15:48Implement in small steps
  5. 17:02Separate lazy from strict
  6. 21:57Make your API universal There should be one canonical way to access things
~/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.