RACK
a framework to roll your own
@nishantmodak
Revealing Hour Creations
t
revealinghour.in
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
Donald Knuth
Email is a wonderful thing
for people whose role in life
is to be on top of things. But
not for me; my role is to be
on the bottom of things.
http://www-cs-faculty.stanford.edu/~knuth/email.html
Slide 4
Slide 4 text
SERVER
What is Rack?
APPLICATION /
FRAMEWORK
SERVER
Slide 5
Slide 5 text
1. Web Server Interface
2. Tool for composing web applications
3. Collection of middleware utilities
What is Rack?
Slide 6
Slide 6 text
RACK
Slide 7
Slide 7 text
config.ru
$ rackup
Slide 8
Slide 8 text
APP
HTTP
INTERMEDIARIES
Middleware
Slide 9
Slide 9 text
HTTP
APPLICATION
M
I
D
D
L
E
W
A
R
E
Slide 10
Slide 10 text
DSL use, run, map
lib/builder.rb
Slide 11
Slide 11 text
DEMO
1. MyRackApp
2. Middlewares - use / run / map
3. Rack Code
Slide 12
Slide 12 text
Rack::Builder
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
> rake middleware
Slide 15
Slide 15 text
MIDDLEWARE
MIDDLEWARE
MIDDLEWARE
ROUTING
MIDDLEWARE APPLICATION
APPLICATION
SERVER
FRAMEWORK
Slide 16
Slide 16 text
Yay! Full Stack Developers!
Slide 17
Slide 17 text
WHY ANOTHER FRAMEWORK ?
Slide 18
Slide 18 text
Yes, We CAN !
Slide 19
Slide 19 text
CRUDingly awful
Slide 20
Slide 20 text
Maybe
- fearware
- too bloated
- too simple
- over default ing
-
Slide 21
Slide 21 text
Maybe
- fearware
- too bloated
- too simple
- over default ing
- troll your own framework