Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Webmachine (Ruby)

Webmachine (Ruby)

presented on KRUG

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