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…4 min read·Aug 10, 2023--1--1
Evgeniy DeminRails upgrade led to Ruby bugHave you ever seen Ruby bugs? I did. Join my short journey on how that happened.2 min read·Jun 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…4 min read·Jun 27, 2023--2--2
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…3 min read·May 22, 2023--2--2
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…5 min read·Apr 11, 2023--3--3
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.5 min read·Mar 14, 2023--4--4
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…3 min read·Feb 28, 2023--4--4
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…3 min read·Feb 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…4 min read·Feb 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…4 min read·Jan 19, 2023--3--3