HNHacker News
TopNewBestAskShowJobs

evgeniydemin

8 karma · joined February 1, 2023

submissionscomments
evgeniydemin··on [dead]
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 to jump from 5.2+ right to 6.1, I want to share some of the stories.
evgeniydemin··on Clean FactoryBot with FactoryTrace
Are you a user of FactoryBot?

If so, I highly recommend taking a look at the FactoryTrace gem!

This gem is designed to automatically detect and identify unused factories and traits in your codebase. It's a fantastic tool for keeping your code clean and removing any unnecessary clutter.

evgeniydemin··on [dead]
I recently stumbled upon a perplexing discrepancy while converting Time to DateTime using the #to_datetime method. Intrigued by this unexpected behavior, I delved into an investigation to unravel its root cause. I’ll share my findings in this blog post with you, as I believe it’s worth your attention.
evgeniydemin··on [dead]
Writing CRUD controllers in Rails may seem easy, but as your application grows, you'll find it increasingly difficult to maintain and update your code. In this article, you'll learn why extracting business logic from your controllers and creating focused, testable business actions is a necessary change.
evgeniydemin··on [dead]
These simple facts can help boost your application's performance or avoid memory bloats.
evgeniydemin··on No More N+1. Period
Thank you very much for your comments! I appreciate that!

So far, I see that N+1 is a "measurable" problem that doesn't have to be removed with an additional layer of hidden complexity.

evgeniydemin··on No More N+1. Period
I'm sorry; I didn't know memes are considered bad things. I'm experimenting with "facing" pictures and haven't found my style so far.

What kind of image would you suggest I have on posts like this?

evgeniydemin··on No More N+1. Period
Why would you spend your time dealing with annoying N+1 problems when you can enable auto-preloading and forget about it for good? Are you surprised it's possible? Check it out!
evgeniydemin··on Stop using eager loading in your Rails application; use this instead
It’s a popular internet recommendation to use eager loading in Ruby on Rails applications to eliminate the N+1 query problem. It may seem like a blessing initially, but it has drawbacks. Gladly, there is a much better solution I want to share with you.
evgeniydemin··on Ruby Numbers and the Memory: how I got confused
Glad that you liked it! True about timecop.
evgeniydemin··on Ruby Numbers and the Memory: how I got confused
Are you interested in how Ruby stores numbers in memory? It can look not very sensible initially, but knowing this can help you grow professionally.
evgeniydemin··on [dead]
Unfortunately, I learned it the hard way. Check out the article to avoid the same mistakes.