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

Ruby Best Practices - Method Arguments

Simple rules for ordering Ruby method arguments — put optional arguments last, and switch to keyword arguments when you have more than one optional parameter.

January 12, 2024 · 2 min
Photo by Michael Dziedzic on Unsplash

Love your error messages as thyself

Stop ignoring error messages and start reading them — it will make you a better developer and help you understand your language from the inside out.

May 17, 2022 · 5 min
Photo by Debby Hudson on Unsplash

Writing code for your future self

A set of guidelines to write clean, readable code that you — and your future self — will thank you for.

November 21, 2021 · 7 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

A Leap Into the Unknown

After 19 years as a teacher, I finally made the leap into a new career as a software developer. Here are my thoughts on this transition, the challenges ahead, and the feelings that come with stepping into the unknown.

May 19, 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

Genesis of a Career Change

After 19 years as a teacher, I decided to change careers and become a software developer. Here are the reasons that led me to this decision, and the first lessons I’ve learned from this transformation.

January 20, 2020 · 4 min
Mastodon