State Design Pattern

State Design Pattern is often overlooked in favor State Machines when it comes to Rails and object state management. However, the State Design Pattern is a highly effective open/closed solution to many state design woes.

Double Polymorphic Associations in Rails

A quick overview of using associations to define good domain descriptions as well as good behavior.

Thoughts on Interfaces for Models

After making small changes to a model, it got me thinking hard about how I build interfaces.

Resolving client side routes in Rails

Tell Rails to pass routes to a client with a nifty helper.

Dockerize Create React App

I'm relatively new to using Docker and wanted a quick way to spin up a small React application using Docker so I could easily share it as a proof of concept for features I develop at work. Here's a quick guide to dockerizing a React app made with create-react-app.