It seems gauche to insult Rails for being bloated, while bragging that you can write your own framework in 43 lines of code -- while using ActionDispatch::Routing::RouteSet, a fairly complicated, very powerful, part of <i>Rails</i> which takes way more than 43 lines to express.<p>(735 lines, not counting any of it's own dependencies inside Rails. <a href="https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/route_set.rb" rel="nofollow">https://github.com/rails/rails/blob/master/actionpack/lib/ac...</a>)<p>Sure, you wrote your own framework in 30 minutes -- by using a part of Rails which many many developer-hours have gone into, over many calendar years. (<a href="https://github.com/rails/rails/commits/master/actionpack/lib/action_dispatch/routing/route_set.rb?page=7" rel="nofollow">https://github.com/rails/rails/commits/master/actionpack/lib...</a> history stops at rails3 four years ago, when they moved the router from one project to another... the actual history goes back further)<p>Rails may arguably be bloated, but as of Rails3 it's also amazingly modular and decoupled, allowing you to use just the parts of it you want. And OP thought the Router was awesome enough to want to reuse it. At least give it the credit it deserves, for that, when you're using Rails to write a framework you say shows how Rails is awful!