Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Webmachine (Ruby)

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Webmachine (Ruby)

presented on KRUG

Avatar for Paweł Pacana

Paweł Pacana

March 12, 2013
Tweet

More Decks by Paweł Pacana

Other Decks in Programming

Transcript

  1. TOOLKIT • „A toolkit for easily creating well- behaved HTTP

    applications” • not a framework • Sinatra vs. Rails • extracted from Riak
  2. RACK INTERFACE app = proc { |env| [ 200, #

    Status {'Content-Type' => 'text/plain'}, # Headers ["Hello World!"] # Body ] }
  3. WEBMACHINE • resources as a core building block • declare

    resources, don’t perform actions • resource callbacks
  4. MY OBSERVATIONS • good as HTTP content delivery mechanism in

    Ports and Adapters architecture • good for Hypermedia APIs • small enough to read and trust it