## Creating a Conventional, Stripe-like API With Grape and Ruby on Rails

On March 24, 2023; in

It's easy.

Read more


## Résumé tips for software developers and engineers, and everyone else too

On December 30, 2022; in

Your parents are wrong; a stranger on the internet is right.

Read more


## A plea for administration

On December 27, 2022; in

It's hard to be a manager if you can't manage.

Read more


## Simple column aliases in ActiveRecord

On October 20, 2022; in Rails

Too small for a gem but again, leftpad

Read more


## About that iPhone satellite thing

On September 25, 2022; in Story time

Just a feeling.

Read more


## Creating a framework for Framework7 on Rails

On September 5, 2022; in Ruby, JavaScript

Because you don't want to write that much JavaScript.

Read more


## A nice secret from my mother

On August 14, 2022; in Genealogy

Since her passing, I have maintained that she took all the good secrets to the grave. This is a new one, and it's enough to blog about.

Read more


## How to Create a Ruby JSON HTTP API Client Gem

On May 5, 2021; in Ruby

A definitive guide to designing, architecting, and writing a gem for consuming a JSON-based REST API in Ruby.

Read more


## In Praise of Styleguides

On April 19, 2021; in Ruby, Ruby on Rails

Hey, listen!

Read more


## You probably don't need to #map or #pluck that relation

On November 5, 2020; in Ruby on Rails

For performance, for a better life.

Read more


## Designing a Monolith: Understanding Code Architecture (Part One)

On October 23, 2020; in Designing a Monolith Series

Defining what code architecture is and changing the way we think about our code.

Read more


## 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`, and `Array#pop`

On August 23, 2020; in Ruby

Bathroom jokes.

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


## How To Go From Junior-Level to Mid-Level Ruby/Rails Developer

On April 19, 2018; in Career

There are no cheatcodes.

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