The Sweet Spot
On software, engineering leadership, and anything shiny.

Category: rails

Pitfalls to avoid when moving to async systems

I recently published a post on the [Carbon Five blog]( titled ["Evented Rails: Decoupling complex domains in Rails with Domain Events"]( that takes some of my thoughts about moving a …

Rails, meet Phoenix: Migrating to Phoenix with Rails session sharing

You’ve resolved to build your company’s Next Big Thing in Phoenix and Elixir. That’s great! You’re facing a problem though - all user authentication and access concerns are performed on …

Notes on performance tuning a Puma server

A couple of months ago, I was tuning a Rails app for one of our clients. This client wanted to know how performant their app would be under load. To …

Docker, Rails, and Docker Compose in your development workflow

(This post [originally appeared]( on the Carbon Five blog.) We've been trialing the usage of Docker and [Docker Compose]( (previously known as [fig]( on a Rails project here at Carbon …

Ember Data, Rails, CORS, and you!

I'm starting up a new personal project involving Ember-Data and Rails (more to come). The gist of it is that it's a pure frontend app engine built in Yeoman and …

Decomposing Fat Models

Heard an awesome Ruby Rogues podcast recently: ["Decomposing Fat Models"]( Essentially, they're talking through Bryan Helmkamp's [Code Climate blog entry "7 ways to decompose fat ActiveRecord models"](, which sums up …

Speeding up Rspec/Cucumber feedback times without sacrificing coverage

[Rocket Fuelled Cucumbers]( View more [presentations]( from [Joseph Wilk]( One thing the Blurb devs have been discussing is how we can speed up our test feedback cycles without sacrificing coverage. …

HAML object references

Did you guys know that you can use the '[ ]' brackets in HAML to automatically set the id and class on a tag, kind of like Rails' [tag]( helper? # file: …

RSpec order-agnostic array matching

What's that? [You want to write an expectation for an array but your method returns the Array in a nondeterministic ordering]( Simple. Write: my_method.should =~ See the [source](