~/talk

Rack Middleware as a General Purpose Abstraction

Talkat LA RubyConf 2012 · 2012-02-02..02-04· [ruby, software-architecture]
slides:none on file

Argues that Rack middleware can be a general-purpose object-composition primitive: move large methods into small classes with a call(env) convention, extract dependencies (user from env), and chain operations. Shows Vagrant’s middleware stack (validate → check_accessible → suspend/create) as a working example and refactors a Diaspora user accept_invitation into a middleware-style class. Results: easier reuse across commands, simpler unit tests, clearer dependencies, and practical success in both Vagrant and the refactored app.

AI-written summary · about

  1. 0:00Introduction
  2. 0:55What is this talk about
  3. 1:30Existing solutions
  4. 2:11Object composition
  5. 3:16Survey
  6. 3:49Review
  7. 4:22Middleware
  8. 7:31Endpoints
  9. 8:08Questions
  10. 9:06Virtual Machines
  11. 9:30vagrant
  12. 10:13invocation
  13. 10:42virtualbox
  14. 11:39I have nothing
  15. 12:26Rails developers
  16. 14:08Dependencies
  17. 17:01Controller
  18. 18:47Refactoring
  19. 19:26Significance
  20. 19:36Mixins
  21. 20:05Methods
~/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.