Evgeniy DeminSurprising 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
Evgeniy DeminRails 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
Evgeniy DeminRails 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
Evgeniy DemininBetter 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
Evgeniy DeminFrom 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
Evgeniy DeminAutomatic 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
Evgeniy DeminStop 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
Evgeniy DeminRuby 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
Evgeniy DeminRuby 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
Evgeniy DeminUniqueness validation does not work since the beginning of Ruby on Rails.This story is about a problem of uniqueness validation in ActiveRecord (Ruby on Rails default ORM). It’s time to solve it once and for…Jan 19, 20233Jan 19, 20233