~/talk

Extending Gems - Patterns and Anti-Patterns of Pluggable Gems

Talkat Open Source Bridge 2014 · 2014-06-24..06-27· [ruby, ruby-on-rails]
slides:none on file

Library authors encounter concrete failure modes and fixes: New Relic RPM is broken by internal monkey‑patches and by single shared instrumenters that get tromped; the practical fix is explicit extension points and allowing multiple subscribers (e.g. turning an after_fork hook into an after_fork array). Middleware composition works but needs middleware introspection to avoid surprising environment mutations. Forking kills background threads and copies locks, so provide fork hooks and restart threads. Also: qualify standard classes, document extension points, and use semantic versioning.

AI-written summary · about

  1. 0:00Start
  2. 3:52Where We're Going
  3. 5:12activerecord
  4. 5:47Dependency Injection
  5. 9:23Delayed::Job
  6. 11:46Resque
  7. 19:51Sidekiq
  8. 21:47Forks and Daemons
  9. 22:02Forking
  10. 23:30Add Threads
  11. 24:35Enter the Lock
  12. 26:18unicorn
  13. 34:35yml + ERB
  14. 39:14Where We've Been
~/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.