Tutorials

Avoiding environment conflicts with Kamal and Dotenv
We often rely on an .env file in development when using Dotenv. This is a direct opposite for Kamal that also loads the same .env file, but for deployment. As an example we might rely on RAILS_MASTER_KEY in an .env file which will differ from deve...

Avoid this Bug with Numeric Environment Variables in Ruby · Daniela Baron
This post will explain how to avoid a common pitfall with numeric environment variable handling in Ruby.I recently encountered an error when running some code that calls a third party API to fetch data. This code uses the Quickbooks Ruby gem to fe...



JRuby on CRaC Part 1: Let's Get CRaCking! – Charles Oliver Nutter
The Hardest Problem in JRubyJRuby is the most successful and widely-deployed alternative Ruby implementation, but is frequently overlooked as an option due to several misconceptions:“JRuby won’t work for my app because we use C extensions”Most pop...


Scaling Rails and Postgres to Millions of Users at Microsoft: Lessons and Takeaways – StepChange
Do you have a Rails app built on PostgreSQL and need to scale it to millions of users? In this interview, I speak with Andrew Atkinson, one of StepChange's expert consultants, who brings deep expertise in optimizing Rails applications for performa...

Transpiling Go and Java to Ruby using GPT-4o and Claude 3.5 Sonnet
The project was to extend our DevQualityEval LLM LLM code generation benchmark with a new language: Ruby. We successfully used LLMs to transpile existing Java and Go code (tasks and test cases) to Ruby. The workflow of this project and our experie...

The Thread API : Concurrent, colorless Ruby - JP Camara
We’re going to break down threads into three parts:The Thread API - All the tools available to you in the Ruby runtime to manage threads, and how they workInterrupting Threads - How threads get stuck, and how to shut them down safelyThread and its...