Tutorials
Time extensions are an unsung hero of Active Support - Andy Croll
In Active Support‘s extensions to the core Ruby classes, some of the most useful and plentiful are related to Time.One of Rails’s founding uses was to provide helpful, reusable methods for regularly performed tasks. In our web applications we‘re o...
How to "bundle install" in deployment mode, using bundler in docker · HTTPX
I was recently setting up the deployment of a ruby service, in my employer’s production environment, which uses EKS on AWS and docker containers. This time though, I wanted to try how hard would be to generate a production image, as well the dev/t...
Creating continuous aggregates with Ruby and Timescale
Continuous aggregates are designed to make queries on very large datasets run faster. TimescaleDB continuous aggregates use PostgreSQL materialized views to continuously and incrementally refresh a query in the background, so that when you run the...
A Better Way to Sort Ruby Objects: How our Put gem makes sorting by multiple conditions easy
I have a confession to make: I’ve been programming Ruby since 2004 and I still get tripped up whenever I encounter the <=> spaceship operator. As recently as this week, I’ve caught myself slowly and unconfidently working out the rules in my head: ...