~/talk

Class Reloading in Ruby on Rails: The Whole Story

Talkat RailsConf 2014 · 2014-04-22..04-25· [ruby-on-rails, developer-experience]
slides:none on file

Explains how Rails implements live code changes by replacing Ruby’s default autoload path with a filesystem-backed resolver that loads with load in development and require in production, tracks which files provided which constants, and removes those constants on file change. Covers Ruby constant lookup, the constant autoloading heuristic Rails uses (directory backtracking and anonymous module creation), and the crucial cons_missing override that triggers loading and enables class reloading.

AI-written summary · about

  1. 0:00Class reloading in Rails
  2. 2:29Ruby constants explained
  3. 11:47Constants and modules
  4. 17:32Ruby ancestors
  5. 21:10Constant lookup in Ruby
  6. 27:20Why Rails avoids autoload
  7. 30:12Rails autoloading
  8. 36:56Required vs autoloading
  9. 40:32Rails constant resolution
  10. 42:22Class reloading in dev
~/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.