What is Ruby String.length time complexity?
I’ve been asking myself this question: is Ruby
O(n)? In order to find it I’ve decided to dive into the Ruby MRI source code (which is written in C).
Abstracting SQL union with ActiveRecord
Sometimes you might need to use SQL UNION in your application, in this article we explan you how to abstract SQL union creation within ActiveRecord.
Different caching strategies for Rails.cache and ActionController::Caching
If you need to use different caching strategies for your Rails.cache and your ActionController::Cache (used for fragment caching) just put the following in your
Thinner Rails Model with the Finder Pattern
Hello everybody, today I want to share with you a pattern learned from gitlab: the finder pattern.
subscribe via RSS