An introduction to Barley, the fast model serializer

How I built and open-sourced Barley, a fast and simple model serializer gem for Rails, born from real-world performance needs and benchmarked against the best in the Ruby ecosystem.

May 6, 2025 · 8 min

Track and debug your ActiveRecord SQL queries with annotations

Embed contextual comments directly into your SQL queries using ActiveRecord’s annotate method, making log analysis and debugging far easier.

December 10, 2024 · 3 min
Photo by Markus Spiske on Unsplash

Lessons learned after migrating from Heroku to a kubernetes cluster

I recently migrated my company’s rails hosting from Heroku to a kubernetes cluster. It was a daunting task, but I learned a lot. Here are the lessons I learned, and how you can avoid the pitfalls I encountered.

February 20, 2021 · 7 min

An alternative to the ActiveRecord after_initialize callbacks

Avoiding the callback hell in Rails by creating a simple method in the model to initialize associated records.

October 3, 2020 · 1 min

Chaining conditions in regular expressions

Unleash the full power of regular expressions by chaining conditions together.

October 3, 2020 · 2 min

Prevent Devise from sending confirmation emails

When you need to import users into a new Rails app using Devise, you may want to skip sending confirmation emails. Here’s how to do it by overriding an instance method in the User model.

January 26, 2020 · 2 min
Mastodon