Stackprof VS Rbspy

I’ve been learning a bit about Ruby profilers lately, in particular rbspy & stackprof. These profilers allow you to see what your code is doing over a given interval of time.

Read More

N + 1 in GraphQL on Rails

We can also run into n + 1 queries when dealing with GraphQL in Rails. The standard pattern for solving N + 1 in GraphQL is with loaders.

Read More

A Simple Database in Ruby

I’ve been reading Martin Kleppmann’s book “Designing Data-Intensive Applications” and decided to create a simple project to explore and solidify my understanding of some of the concepts explained in his book. The code for this post can be found here.

Read More

Some CSS Grid

I’ve decided to redesign this site as a way of learning CSS grid. I’m going to code as I put this blog post together.

Read More

Better CSV Specs

I’ve always found testing CSVs with RSpec to be pretty painful. Generally, CSVs are tested like this:

Read More

Searching for Things in Rails

One common task that Rails developers use day to day is rake routes (or rails routes in Rails 5). As your app grows, you’ll use grep to only show the routes you’re interested in:

Read More

Running Rails in Production Environment Locally

There are some Rails issues that may require me to run a server locally with the production environment to debug. An example of such an issue might be a missing asset. Running the server in the production environment isn’t difficult, although there are a couple of non obvious steps.

Read More