~/talk

The Power of Middleware - Building Your Own Mini Web Framework on Rack

Talkat Ruby|Web Conference 2010 · 2010-09-09..09-10· [ruby, web-platform]
links:none on file
slides:none on file

Cuts Rack down to runnable plumbing: shows a small division app served via Rack middleware stack, demonstrates an inbound filter that parses hex params, an outbound filter that sprintf rounds the float, and an endpoint that validates params and returns 500 on bad input. Builds three routers: map-to-class (method_missing + eval), params-injection into query string, and middleware-as-blocks ala Sinatra. Code runs under rackup from a GitHub branch, most demos work but a couple of routes needed quick fixes.

AI-written summary · about

  1. 0:00Intro
  2. 1:30Rack
  3. 5:57Inbound Filter
  4. 9:00Outbound Filter
  5. 10:30Endpoint
  6. 11:56Routing
  7. 12:34Map to a class
  8. 16:52Middleware + Params
  9. 20:41Middleware + Blocks
  10. 24:04Thoughts on Layouts/Views
  11. 24:59Questions?
~/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.