## Designing a Monolith: The Series

On September 24, 2020; in Designing a Monolith Series

Rethinking how we design our monoliths.

Read more

## The big list of Ruby on Rails performance tweaks

On September 22, 2020; in Ruby on Rails

So you wrote an app and you think it's slow. What can you do? A lot.

Read more

## Async ActiveRecord Callbacks

On September 20, 2020; in Ruby on Rails

Nifty hack that's not terribly awful?

Read more

## Introducing Gearhead

On September 14, 2020; in Ruby on Rails

Turn your database schema into a RESTful API in just three commands (including rails s!)

Read more

## Using filters to easily create DSLs

On August 31, 2020; in Ruby on Rails

Tidy up your controllers and introduce descriptive one-liners by wrapping filters with clear method names.

Read more

## How to remember Array#shift vs Array#unshift

On August 23, 2020; in Ruby

It's a bathroom thing.

Read more

## Ruby blocks in a few minutes.

On July 19, 2020; in Ruby

A quick and practical guide to seeing blocks being used.

Read more

## Using Ruby Prepend to make your code super

On June 15, 2020; in Ruby

It's super duper cool.

Read more

## Organized code made easy with ActiveSupport::Dependencies::Loadable

On May 8, 2020; in Ruby on Rails, Code Architecture

Use require_dependency to make your code more organized.

Read more

## Querying and serializing one million records in Ruby on Rails

On May 1, 2020; in Ruby on Rails, Performance

Tips and tricks when querying your database and serializing objects in a performant and maintainable manner.

Read more

## Prefer `size` over `count`

On November 2, 2019; in Ruby on Rails

size doesn't hit the database if things are loaded?.

Read more

## How Ruby on Rails ActiveRecord chaining works

On August 22, 2019; in Ruby on Rails

Returning self makes this clever API slick.

Read more

## Trivial Batch Actions in Ruby on Rails

On April 15, 2019; in Ruby on Rails

Writing an elegant and DRY API to handle batch actions in Ruby on Rails.

Read more

## Purging ActiveStorage attachments with a familiar API

On March 19, 2019; in Ruby on Rails

Use ActiveModel::Attributes to easily create a familiar API for purging ActiveStorage Attachments.

Read more

## Custom exception patterns in Ruby on Rails

On January 11, 2019; in Ruby on Rails

Creating custom exceptions specific to your app's needs is a powerful way to convey intent. What do they look like and where should you put them?

Read more

## Custom headers for HTTP statuses in Ruby on Rails

On November 3, 2018; in Ruby on Rails

Adding headers for specific HTTP statuses in Ruby on Rails easily with super.

Read more

## Using Rails ActiveModel::Attributes and practice ActiveModel examples

On August 6, 2018; in Ruby on Rails

Use ActiveModel::Attributes in your models to get the schema-back attributes you love without the schema requirement.

Read more

## Keeping it classy with Struct

On May 25, 2018; in Ruby

Using Struct to bundle attributes together using accessor methods without having to write an explicit class.

Read more

## The ultimate pizza hack

On January 8, 2018; in Life

This will change the way you buy and consume pizza and there's not even an ad on my site so please trust me when I say read this.

Read more