Database Schema OwnershipIt’s been a while since my last article. Now, feeling fresh and energetic, I want to highlight a problem that has been bothering me for…Nov 191Nov 191
Surprising breaking change during Rails upgrade in sprocketsI have noticed one strange behavior about how Rails serves static files. It looks like a breaking change because I’m upgrading Rails 5.2 to…Aug 10, 20231Aug 10, 20231
Rails upgrade led to Ruby bugHave you ever seen Ruby bugs? I did. Join my short journey on how that happened.Jun 30, 2023Jun 30, 2023
Rails upgrade: why it’s hard and a single trick on simplifying it..I’m working on a Rails upgrade for a giant monolith application. It’s been a while already, and while I’m encountering many issues trying…Jun 27, 20232Jun 27, 20232
Published inBetter ProgrammingThe Mysterious Time-to-DateTime Conversion: Unraveling Ruby’s Unexpected BehaviorI recently stumbled upon a perplexing discrepancy while converting Time to DateTime using the #to_datetime method. Intrigued by this…May 22, 20232May 22, 20232
From Rails Controller to Business ActionLevel up your Rails controllers by extracting business logic into reusable, testable, and more organized code units. Learn how in this…Apr 11, 20233Apr 11, 20233
Automatic preloading in Rails: the dream that came true.Stop using includes for resolving N+1 issues. You don’t need it. Use auto-preloading instead, and here is how.Mar 14, 20234Mar 14, 20234
Stop using manual preloading in your Rails application; use this instead.It’s a popular internet recommendation to use preloading in Ruby on Rails applications to eliminate the N+1 query problem. It may seem like…Feb 28, 20234Feb 28, 20234
Ruby Numbers and the Memory: how I got confused.I was suddenly doing a simple task to generate a bunch of random integers. There were no strict requirements, so I was thinking about an…Feb 21, 2023Feb 21, 2023
Ruby on Rails associations can be buggyWhen dealing with has_one associations in the Ruby on Rails ORM framework ActiveRecord, there is a tiny but essential detail. This missing…Feb 1, 2023Feb 1, 2023