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.
Spending Too Much Money is the Best Problem to Have
For almost any web application, one of your first goals should be a deployment architecture that can scale from 0 to ~10,000 requests per minute with almost no human intervention. The cost at which this happens is not material. The ability to scale at any price is more important than the ability to scale at a low price.
Read More
Rails
When we announced Heroku’s Next Chapter last month, we received a lot of feedback from our customers. One of the things that stood out was interest in a middle ground between free and our current Hobby dyno and data plans, a lower-cost option.
Recently, we upgraded a set of application to Rails 7 using the Rails upgrade guide. Here are the issues we faced during the upgrade.
Building filterable, instantly updated interactive charts with Ruby on Rails 7, ApexCharts, and StimulusReflex.
Ruby
In this talk, I introduce my thoughts on RubyCop and programming and some idea of a bit better RuboCop world, with lower risk to damage productivity and to misguide beginners.
The go-to way to sort Ruby objects by complex criteria is Enumerable's sort_by method. Here's how our Put gem makes your sorts clearer, terser, and nil-safe.
Blast from the past
Let’s do some weird stuff with Rails to make our applications more maintainable.

You don’t hate mocks; you hate side-effects.1 When a mock annoys you, it realizes its purpose, showing you where a side-effect is getting in your way. If you refactor away from the side-effect, then you eliminate the mock. The mock is a consequence of your pain, not the cause of it. Please don’t blame the poor mock for doing its job.
Beyond Ruby
The cascade is not chaotic. It is wonderfully symmetrical. But cascades are problematic.
My friend Molly has had an impressive career. She got a job as a software engineer after graduating from college, and after kicking ass for a year or so she was offered a promotion to management, which she accepted with relish. It took two decades, an IPO and a vicious case of burnout before she allowed herself to admit how much she hated her work, and how desperately she envied the software engineers she worked alongside. Turns out, all she ever really wanted to do was write code every day. And now, to her dismay, it felt too late.
Library of the week
Mike released the first public beta of Sidekiq 7.0. This is a major new release with several huge new features, several features removed, APIs refactored and updated requirements.
  • Job Performance Metrics!
  • Embedded mode!
  • Capsules!
  • Strict args!