• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Rack
 

Rack

on

  • 1,176 views

My DevHouseFriday talk about Rack.

My DevHouseFriday talk about Rack.
http://wiki.railslove.com/index.php?title=Talk_20090320

Statistics

Views

Total Views
1,176
Views on SlideShare
1,176
Embed Views
0

Actions

Likes
1
Downloads
10
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

Rack Rack Presentation Transcript

  • http://rack.github.com Saturday, March 21, 2009
  • ursprüngliches Problem • wiederholender Code... ;) • jeder schreibt eigenen Code um mit Web Servern zu kommunizieren Saturday, March 21, 2009
  • „Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.“ http://rack.rubyforge.org/doc/ Saturday, March 21, 2009
  • Rack ist eine Spezifikation (und Implementierung) DER minimalen Ruby API zur Interaktion mit HTTP Saturday, March 21, 2009
  • Hä? Saturday, March 21, 2009
  • Request => Response Saturday, March 21, 2009
  • Request HTTP CGI Saturday, March 21, 2009
  • Response Status Header Body Saturday, March 21, 2009
  • Rack - die Spec http://chneukirchen.org/talks/euruko-2007/neukirchen07introducingrack.pdf Saturday, March 21, 2009
  • Rack - die Spec • Irgendwas wird mit #call aufgerufen • und gibt einen Array mit Status, Header und Body zurück Saturday, March 21, 2009
  • Hello World lambda { |env| [200, { „Content-Type“ => „text/plain“, „Content-Length => „11“ }, [„Hello World“]] } Rack App wird mit dem environment hash aufgerufen und gibt einen Array mit Status, Header und Body zurück Saturday, March 21, 2009
  • Hello World lambda { |env| [200, { „Content-Type“ => „text/plain“, „Content-Length =>#call(env) reagiert Alles was auf „11“ }, [„Hello World“]] } Rack App wird mit dem environment hash aufgerufen und gibt einen Array mit Status, Header und Body zurück Saturday, March 21, 2009
  • Saturday, March 21, 2009
  • Rack - der Code • Tools • Rack::Request + Rack::Response • Rack::MockRequest + Rack::MockResponse • Rack::Builder + rackup • Middleware, Middleware, ... • Adapters Saturday, March 21, 2009
  • Saturday, March 21, 2009
  • Saturday, March 21, 2009
  • Rack::Builder „Rack::Builder implements a small DSL to iteratively construct Rack applications.“ http://rack.rubyforge.org/doc/classes/Rack/Builder.html Saturday, March 21, 2009
  • rackup wandelt ein rack config file in eine Rack::Builder Instanz um Saturday, March 21, 2009
  • Middleware Saturday, March 21, 2009
  • m/ Saturday, March 21, 2009
  • m/ • „Utilities that combine, compose, aggregate or motify Rack application“ • nur Ruby Objekte • stackable Saturday, March 21, 2009
  • HTTP m/ m/ m/ APP Saturday, March 21, 2009
  • Rack::Lint Saturday, March 21, 2009
  • Rack::JSONP Saturday, March 21, 2009
  • Rack::MailExceptions Saturday, March 21, 2009
  • Rack::Cache Saturday, March 21, 2009
  • Rack::TimeZone Saturday, March 21, 2009
  • Rack::Facebook Saturday, March 21, 2009
  • Rack::CSSHTTPRequest Saturday, March 21, 2009
  • Rack::RackRoll Saturday, March 21, 2009
  • Rack::RackRoll Saturday, March 21, 2009
  • http://github.com/rack/rack-contrib Saturday, March 21, 2009
  • Rails 2.3 http://guides.rubyonrails.org/rails_on_rack.html#internal-middleware-stack Saturday, March 21, 2009
  • Rails 2.3 Saturday, March 21, 2009
  • Rails Zukunft?! 2.3 - 3 HTTP m/ m/ m/ APP Saturday, March 21, 2009
  • Controller#call Router#call Saturday, March 21, 2009
  • Router Rails Controller Merb Controller Rails Router Rails Controller Sinatra http://mwrc2009.confreaks.com/13-mar-2009-11-55-the-great-rails-refactor-yehuda-katz.html Saturday, March 21, 2009
  • Quellen & Links • http://m.onkey.org/2008/11/17/ruby-on-rack-1 • http://m.onkey.org/2008/11/18/ruby-on-rack-2-rack-builder • http://mwrc2009.confreaks.com/13-mar-2009-11-05-in-a-world-of-middleware-who-needs-monolithic- applications-jon-crosby.html • http://mwrc2009.confreaks.com/13-mar-2009-11-55-the-great-rails-refactor-yehuda-katz.html • http://rack.github.com • http://chneukirchen.org/talks/euruko-2007/neukirchen07introducingrack.pdf • http://wiki.github.com/rack/rack Saturday, March 21, 2009