~/talk

Refinements - the Worst Feature You Ever Loved

Talkat RubyKaigi 2015 · 2015-12-11..12-13· [ruby]
slides:none on file

Explains that Ruby 2 refinements aim to provide local monkey patches by scoping changes with the using keyword, but only lexically, not dynamically; shows that lexically scoped refinements call super into the original implementation, avoid the global performance and security penalties of dynamic scope, and expose awkward corner cases (IRB eval, needing using in every file), which is why big libraries like Rails and RSpec largely don’t adopt them.

AI-written summary · about

  1. 0:00Start
  2. 2:54domain specific languages
  3. 4:22method wrappers
  4. 6:24defining a refinement
  5. 6:55using a refinement
  6. 10:32dynamic scope
  7. 19:15dynamically scoped refinements: the bad
  8. 21:05lexical scope
  9. 24:45convenience methods
  10. 26:38refinements today: the good
~/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.