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

Rack : A Framework to roll your own

Rack : A Framework to roll your own

( Ruby Conf Australia 2014 )

What is common between Rails, Sinatra and numerous other Ruby frameworks?

They are built on top of Rack or have Rack interfaces for allowing application servers to connect to them.

A deep-dive of sorts on Rack and see what it takes to build a framework, helping us understand these better and ultimately rolling our own.

Almost anyone doing a Ruby app ends up using Rack in one way or the other without ever realising the magic and simplicity that it provides. This session should help decoding that and provide ways on writing your own frameworks.

In involved live coding a framework that is very similar in structure to rails but is bare bones.

Nishant Modak

February 20, 2014
Tweet

More Decks by Nishant Modak

Other Decks in Programming

Transcript

  1. 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
  2. 1. Web Server Interface 2. Tool for composing web applications

    3. Collection of middleware utilities What is Rack?
  3. Maybe - fearware - too bloated - too simple -

    over default ing - troll your own framework