What is Ruby doing on Rails?
Hello, you're reading Infinum Ruby Drops, bringing you the latest Ruby and Rails related news straight to your inbox every week.
Bringing Hotwire to Basecamp
Hotwire is now powering Basecamp 3 on the alpha version we're running internally, and I thought it'd be helpful to document the upgrade process. Although upgrading is perhaps a big word. It's not like we rewrote all the JavaScript we have to make this happen. Coexisting is probably a better term.
Read More
Rails
A basic guide to how ActiveRecord::Locking::Optimistic can help protect your users & application from overwriting data with stale information.
I don't get around to doing these too often, but they are always a lot of fun. In this episode, we'll look at ten different Ruby on Rails tips and tricks.
Ruby
Ruby 3.1 adds #compact directly to the Enumerable module and Enumerator::Lazy class.
It seems that writing Sidekiq’s workers it’s quite an effortless task. Still, during my eight-year journey with this great library, I experienced too many issues caused by poorly designed background jobs to believe that it’s an easy thing to do.
Blast from the past
A step by step guide to migrate your Postgres databases in production environments with zero downtime.
It's a common architecture to have PostgreSQL and Redis serve as the backbone of your app, but PostgreSQL may be capable of everything you use Redis for.
Beyond Ruby
TLDR: Simple scales. Scale application before infra. Keep networking and IO minimal.
A small, quick software team moves faster than the enterprise wants to go.
Repository of the week
First-party, privacy-focused, open-source traffic analytics for Ruby on Rails applications.