Resources, For Real This Time (with Webmachine)
summary
Claims that HTTP belongs as the app shape not an afterthought and demonstrates a Ruby port of Webmachine that implements the RFC as an executable model of HTTP. Builds a small CMS resource family using Webmachine + Webrick/Mongrel adapters, a RIO-backed model via ripple, ERB and JSON representations, ETag/Last-Modified conditional requests, PUT to create/update and HTTP Basic auth. Implements and exercises the state machine (about 36 resource callbacks), shows 304 responses and working accept-header negotiation via curl.
AI-written summary · about
chapters (30)
- 0:00Introduction
- 2:35CGI
- 4:13Webrick
- 5:09Rails
- 8:03Sinatra
- 8:49Rack
- 10:26composability
- 15:52HTTP flowchart
- 16:54Hard questions
- 17:52HTTP RFC
- 18:35Resource
- 20:22What is Webmachine
- 21:53Webmachine is an executable model
- 22:24Webmachine is shaped like HTTP
- 23:05Rubbishing is not a framer
- 23:29Resource focused
- 24:10Resource apps
- 24:51Resource dispatching
- 25:59Example
- 26:12Basic Resource
- 26:45Adding a Route
- 27:11Demo
- 28:51Page Resource
- 29:21Page Model
- 30:49Document Mapper
- 33:18Media Types
- 35:23Condition Robust
- 40:19Basic Authentication
- 42:43Webmachine
- 47:31Browsers
related talks
31mFrom Rails to the Web Server to the Browser
46mResource Driven Web Development with Waves
33mWeb applications with Ruby (not Rails)
30mWeb Applications with Ruby (not Rails)
33mRack ‘em, Stack ‘em Web Apps
36mBuilding a Ruby web app using the Ruby Standard Library
36mRequest and Response
42mWaves: a Resource-Oriented Framework
