Blog

Understanding Rack Apps and Middleware

For many of us web developers, we work on the highest levels of abstraction when we program. Sometimes it's easy to take things for granted. Especially when we're using Rails.

Have you ever dug into the internals of how the request/response cycle works in Rails? I recently realized that I knew almost nothing about how Rack or middlewares work, so I spent a little time finding out. In this post, I'll share what I learned.

Read More

Rack 130 & Serving Static Files

We've been standing up a lot of Sinatra apps lately to provide small sets of functionality on top of mostly static JS application stacks. This seems to be a really helpful method at providing a tiny Ruby footprint for utilities, but otherwise building out a majority of your application in other places. One problem I've encountered lately is how dirty it feels to serve static files in Sinatra apps. Version 1.3.0 of Rack seems to be offering a decent solution.

Read More