Posts by Category

selfnote

From ERB to Phlex: 5 Steps to Pure Ruby Views

2 minute read

I love Rails, but I’ve always found ERB to be a bit messy. You spend your whole day jumping between the “Backend” (clean Ruby code) and the “Frontend” (a mix...

How to Fix N+1 Queries in Rails Like a Pro

4 minute read

There are Rails applications that run incredibly fast on a developer’s laptop, but the moment they are deployed to production, they crawl to a halt. The page...

How to Use ActiveRecord Without Rails

2 minute read

Very often I find myself writing small Ruby scripts to scrape data, process CSV files, or build a tiny Sinatra API. In these situations, generating a massive...

Back to Top ↑

Programming

Back to Top ↑

Javascript

Creating a New Vue App with Vite

1 minute read

Vite is a modern frontend build tool that provides extremely fast development server startup and hot module replacement. Here’s how to create a new Vue app u...

Back to Top ↑