~/talk

Rails on Ruby: How Ruby Makes Rails Great

Talkat RailsConf 2023 · 2023-04-24..04-26· [ruby, ruby-on-rails]
slides:none on file

Rails uses Ruby metaprogramming to turn language features into concrete framework behavior: five tricks that actually ship Rails features. Examples include StringInquirer implemented with method_missing and respond_to_missing to make rails.env.production? work, controller view assigns via instance_variables plus instance_variable_get/set, callbacks built by dynamically creating methods with define_method and set_callback, Active Record dirty attributes via attribute method suffix/prefix patterns, and reversible migrations inferred with class_eval using __FILE__ and __LINE__.

AI-written summary · about

  1. 0:00Start
  2. 1:55Rails on Ruby: How Ruby Makes Rails Great
  3. 2:255 Ruby tricks in the Rails codebase
  4. 3:12String Inquirer
  5. 9:21Encapsulates knowledge of internals
  6. 10:32View Assigns
  7. 16:14Callbacks
  8. 20:40Dirty
  9. 29:45Makes reversible migrations very easy
  10. 30:44The "Look up Definition" IDE button
  11. 34:51Developer experience
~/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.