Rack for web developers
summary
Rack is a tiny spec that actually lets any Ruby web environment hash talk to any server or framework by requiring an object that responds to call -> [status, headers, body]. It enables middleware chaining so libraries like rack-contrib, rack‑lint, rack‑bug and tools like rackup and shotgun plug together. The ecosystem has nearly 500 Rack repos. Example: a ~100‑line Twitter rate‑limiter app with unit tests demonstrates the idea and runs as advertised.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 4:58What is Rack
- 8:10Connecting servers and frameworks
- 10:18Rack specification
- 13:09Rack middleware
- 17:25Middleware examples
- 19:11Running Rack app
- 20:37rackup and config.ru
- 21:40Debugging tools
- 22:24Routing with Rack Mount
- 23:27Debugging libraries
- 24:31Finding middleware
- 25:13Live demo and Q&A
related talks
41mRack - A Framework to Roll Your Own
33mRack ‘em, Stack ‘em Web Apps
37mRuby on Rack: The Magic Between Request and Response
55mThe Future of Rack
30mThe Power of Middleware - Building Your Own Mini Web Framework on Rack
28mIn a World of Middleware, Who Needs Monolithic Applications
22mRack Middleware as a General Purpose Abstraction
38mRewriting Rack: A Functional Approach
