Short Ruby Newsletter - edition 132

The one with several Ruby releases: 3.4.3, 3.5.0-preview1, and JRuby 10, where Marco Roth announces herb tools and Matz suggests that Ruby 4.0 may be released this Christmas.

In partnership with

Table of Contents

Find out why 1M+ professionals read Superhuman AI daily.

AI won't take over the world. People who know how to use AI will.

Here's how to stay ahead with AI:

  1. Sign up for Superhuman AI. The AI newsletter read by 1M+ pros.

  2. Master AI tools, tutorials, and news in just 3 minutes a day.

  3. Become 10X more productive using AI.

Join 1 million pros and start learning AI

๐Ÿš€ Launches and discounts

๐Ÿš€ย Rails Designer launched a new book about JavaScript for Rails Developers is out now. As a ShortRuby newsletter subscriber, you can get 10% off with code SHORTRUBY-FRIEND (valid until April 25).

๐Ÿš€ย Matt Solt announced the launch of a new AI newsletter - RoboRuby - Ruby AI News. You can subscribe and check out the first three editions at Ruby AI news

Source: @mattsolt

๐Ÿš€ย Marco Roth launched a new project โ†’ herb - โ€œ๐ŸŒฟ Powerful and seamless HTML-aware ERB parsing and toolingโ€œ. For more details, check out the blog post for this announcement - Introducing Herb: A new HTML-Aware ERB Parser for smarting developer toolingย and visit herb-tools.dev or the Github repo

๐Ÿ“… Events

๐Ÿ“…ย Friendly.rb announced that their CFP is open until July 1st, and they hint that early submissions have better chances of acceptance. Submit at friendlyrb.com/cfpย ๐ŸƒDonโ€™t forget to buy your ticket ๐Ÿ™‚ the conference has limited seats.

๐Ÿ“…ย Irina Nazarova invited Ruby developers to join the SF Ruby meetup on Wednesday, April 23, at Sentry HQ

Source: @inazarova

๐Ÿ“…ย Javi Ramirez announced he's organizing a Ruby on Rails meetup near the beach in Lisbon in two weeks. If youโ€™re interested, here is his group where you can keep in touch for more details โ†’ Ruby on Wavesย ๐ŸŒŠ

Source: @rameerez

๐Ÿ“…ย Vienna.Rb announced their upcoming meetup on June 5th, promising an exciting event with great speakers and a mysterious surprise, with more details to be revealed soon

Source: @viennarb

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ ๏ธTakashi Kokubun announced an update for Ruby 3.4.3 - Read the full details on Github

๏ธ๐Ÿ‘‰ย Yui Naruse announced a new release of Ruby 3.5.0 preview1

๏ธ๐Ÿ‘‰ J Ruby Dev Team announced the release of a new version of JRuby 10.0.0.0

๐Ÿ‘‰ Nate Berkopec shared reported exciting news from RubyKaigi: Matz confirmed that Ruby 4.0 is likely coming this Christmas

๐Ÿ’ป Code Samples

๏ธ๏ธ๐Ÿ’ป Hans Schnedlitz shared a tip about using HTTParty to create custom HTTP clients

๏ธ๏ธ๐Ÿ’ป Jamie Schembri shared a quick Ruby trick to serve files using just one line of code: โ€œruby -run -e httpdโ€. This simple command comes from Ruby's standard library โ†’ ruby/un - โ€œUtilities to replace common UNIX commandsโ€œ

๐Ÿ’ป Brad Gessler proposed a more intuitive Email API for Rails, showcasing a simplified approach to email composition that consolidates everything into a single file

๐Ÿ’ป Gregory Brown shared Conway's Game of Life code with a bug, asking readers to spot what would go wrong. The issue is the code doesn't handle dead cells with numbers of neighbors other than exactly 3, causing pattern matching to fail in those cases. Check the full thread on Bluesky for more insights

And someone replied:

Source: @bipo1aro4ka.ukr.monsterโ€ฌ

L๏ธater on Gregory said:

๐Ÿ’ป Hans Schnedlitz showcased how to shuffle arrays randomly but consistently in Ruby by using a seed value, allowing randomized content to appear the same for all users

๏ธ๐Ÿ’ป Ruby Cademy revealed a neat ActiveRecord trick: when a โ€œRecordInvalidโ€ exception is raised, you can access the invalid record using โ€œexception.recordโ€

Source: @RubyCademy

๏ธ๐Ÿ’ป Igor Alexandrov shared his Kamal commands cheat sheet, covering essential deployment tasks for Ruby apps

๏ธ๐Ÿ’ป Hans Schnedlitz shared a tip for Ruby developers: use circuit breakers to prevent your app from breaking when external services go down. He used for this โ†’ circuitbox - โ€œCircuit breaker built with large Ruby apps in mindโ€œ

Source: @hschnedlitz

๏ธ๏ธ๐Ÿ’ป Bhumi shared a handy Rails CLI tip: Running โ€œbin/rails" shows available commands and aliases. Add โ€œ--helpโ€ to any command for detailed usage instructions, like โ€œbin/rails generate --helpโ€

Source: @bhumi1102

๏ธ๐Ÿ’ป Ruby Cademy shared a pro tip about enhancing Rake tasks in Ruby, showing how to hook into existing tasks for additional actions like logging or notifications before or after task execution

Source: @RubyCademy

๏ธ๐Ÿ’ป Jamie Schembri highlighted Ruby's Etc module, a standard library feature that provides easy access to system data like user information, groups, and architecture.

๏ธ๐Ÿ’ป Nidhi Sarvaiya explored the new โ€œparams.expectโ€ feature in Rails 8, finding it offers more robust error handling by providing consistent and clear validation of parameter structures

๐Ÿ“ Thinking about Code Design

๏ธ๐Ÿ“๏ธ Nate Berkopec highlights a common Cumulative Layout Shift (CLS) problem in Rails apps: missing image dimensions. He suggests storing image height and width with ActiveStorage to improve page stability and user experience. The reference for this statement here โ†’ How to store image width & height in Rails ActiveStorage

Rob replied:

Source: @robzolkos

๏ธ๐Ÿ“ย Jose Farias shared a Ruby coding style tip: Indenting private methods makes it easy to quickly see access restrictions when reviewing code, especially in diffs with limited context

and Joel replied:

Source: @joel.drapper.meโ€ฌ

Source: @joel.drapper.meโ€ฌ

๏ธ๐Ÿ“ย Adam McCrea explained how job queues with different Service Level Objectives (SLOs) can dynamically scale worker processes. An urgent queue with a 5-second SLO scales down to 1 worker when idle, while a default queue with a 30-second SLO scales to zero workers when empty, helping optimize computational resources and costs

๏ธ๐Ÿ“ย Nate Berkopec shared his take on web application performance ๐Ÿ“ˆ

๏ธ๐Ÿ“ย Steven R. Baker suggested cleaning up old Rails migrations after they've been applied in production. For mature projects, keeping every migration becomes unnecessary and can complicate database management

Source: @srbaker

๏ธ๐Ÿ“ย JP Camara highlighted a performance improvement in Ruby's Ractor JSON parsing: Frozen interned strings are now stored in a lock-free hash, making the Ractor example twice as fast as the single-threaded version

All the resources from this thread are available here:

๐Ÿ’กAround code (news, findings, books, and more - all about Ruby)

๐Ÿ’กRuby Central announced that free RubyGem analytics are available to the community. For more details, check the blog post โ†’ Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central

๐Ÿ’กย Peter Cooper shared his early impressions of GPT 4.1, testing it with a Ruby library

Source: @cooperx86

Source: @cooperx86

GPT-4.1-mini generated documentation for Ruby's JSON library

GPT-4.1-mini generated documentation for Ruby's JSON library - README.md

gist.github.com/peterc/413c94b211b3ec4cf975ae2d36188c16

Source: @cooperx86

โค๏ธ Why Choose Ruby and Rails

โค๏ธ Irina Nazarova shared a powerful quote highlighting Rails as a secret superpower, revealing how successful companies have been consistently building their products with Ruby on Rails. You can read the entire thread on the Threadreader

Source: @inazarova

She continued bringing relevant arguments on this take, showing how amazing Ruby ecosystem really is ๐Ÿ’•

Source: @inazarova

Source: @inazarova

Source: @inazarova

๐Ÿ‡ฏ๐Ÿ‡ต RubyKaigi 2025

We have grouped here all the news related to RubyKaigi 2025.

๐Ÿคณ Posts

๏ธ๐Ÿคณย Stephen Margheim highlighted Matz's RubyKaigi 2025 closing keynote, emphasizing Ruby's strong potential as a central language in the emerging AI era

๐Ÿคณย Maciej Mensfeld shared exciting news from RubyKaigi: He developed a Ractor-based deserialization engine for Karafka, achieving a 30% performance boost without requiring any code changes from users

๐Ÿ“ Notes

๐Ÿ“ย Mish shared a beautiful illustration with explanations about โ€œHow Do Computers Understand Ruby?โ€ during RubyKaigi 2025

Source: @mishmashtan

Source: @mishmashtan

And also some more notes โ†’ โ€œRuby Commiters and The Worldโ€. Feel free and check both posts to see each illustration in more detail:

Source: @mishmashtan

Source: @mishmashtan

๐Ÿ‘พ Games and Trick 2025

๐Ÿ‘พย Yusuke Endoh announced the publication of the winning entries for TRICK 2025, expressing gratitude to all participants, viewers, and judges. Check the GitHub repo to see each solutionโ†’ tric/trick2025

Source: @mametter

๐Ÿ‘พย Vladimir Dementyev shared a game โ†’ RubyKaigi Warrior 2025ย - โ€œGame written in Ruby for learning Rubyโ€.ย If youโ€™re also interested, the game is available to play even if you were not at RubyKaigi ๐Ÿคฉ

Source: @palkan_tula

๏ธ๐Ÿ‘พย Sunao Hogelog Komuro posted an IRB Treasure Hunt game ๐Ÿ†and is available to try it here โ†’ ruby-quiz2025 - IRB Treasure Hunt

Source: @hogelog

๐Ÿ†• Launches and Updates

๐Ÿ†•ย Marco Roth created a new gem โ†’ herb - โ€œ๐ŸŒฟ Powerful and seamless HTML-aware ERB parsing and toolingโ€œ. For more details, check out the blog post for this announcement - Introducing Herb: A new HTML-Aware ERB Parser for smarting developer tooling

Source: @marcoroth_

๐Ÿ†•ย Stephen Margheim created a new gem โ†’ plume - โ€œRuby library for working with SQLite elegantlyโ€œ

๐Ÿงฐย Takashi Kokubun announced that upstreamed ZJIT to CRuby. More details can be seen here โ†’ ZJIT #13131

Source: @k0kubun

This is related to Maxime Chevalier-Boisvert proposal for next generation JIT for Ruby. For more details check out this issue โ†’ Feature #21221 - Proposal to upstream ZJIT

๐Ÿ”– RubyKaigi Slides

๐Ÿ”– Yuta Saito published his slides from RubyKaigi 2025 โ†’ The Evolution of the CRuby Build System

๐Ÿ”– Takashi Kokubun published his slides from RubyKaigi 2025 โ†’ Deoptimization: How YJIT Speeds Up Ruby by Slowing Down

๐Ÿ”– Marco Roth published his slides from RubyKaigi 2025 โ†’ Empowering Developers with HTML-Aware ERB Tooling

๐Ÿ”– Yuichiro Kaneko published his slides from RubyKaigi 2025 โ†’ Rubyโ€™s Line Breaks

๐Ÿ”– Mari Imaizumi published her slides from RubyKaigi 2025 โ†’ย Ruby Taught Me About Under the Hood

๐Ÿ”– Yudai Takada / Ydah published his slides from RubyKaigi 2025 โ†’ Dissecting and Reconstructing Ruby Syntactic Structuresย andย Ruby on Railroad: The Power of Visualizingย CFG

๐Ÿ”– Makicamel published his slides from RubyKaigi 2025 โ†’ Road to RubyKaigi: Making Tinny Chiptunes with Ruby

๐Ÿ”– Jeremy Evans published his slides from RubyKaigi 2025 โ†’ Eliminating Unnecessary Implicit Allocations

๐Ÿ”– Ryuta Kamizono published his slides from RubyKaigi 2025 โ†’ RuboCop: Modularity and AST Insights

๐Ÿ”– Koichi Sasada published his slides from RubyKaigi 2025 โ†’ Toward Ractor local GC

๐Ÿ”– Peter Zhu published his slides from RubyKaigi 2025 โ†’ Modular Garbage Collectors in Ruby

๐Ÿ”– Charles Oliver Nutter published his slides from RubyKaigi 2025 โ†’ Optimizing JRuby 10

๐Ÿ”– Aaron Patterson published their slides from DevMeething at RubyKaigi โ†’ RubyKaigi Dev Meeting 2025

๐Ÿ”– Alex Rodionov published their slides โ†’ Bazel for Ruby (RubyKaigi 2025)

๐Ÿ”– Ryo Ishigaki published their slides โ†’ Making a MIDI controller device with PicoRuby/R2P2 (RubyKaigi 2025 LT)

๐Ÿ”– State of Namespace published their slides โ†’ State of Namespace

๐Ÿ”– Soutaro Matsumoto published their slides โ†’ API for docs

๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿ†• New Gems and Repos

๐Ÿ†•ย Socket announced that Rubygems ecosystem support is now generally available. Check the blog post for more details โ†’ Rubygems Ecosystem Support Now Generally Available

Source: @socket.dev

๐Ÿ†•ย Stephen shared a new gem of Takumi Shotokuโ†’ rbs-trace - โ€œRBS::Trace automatically collects argument and return types and saves RBS type declarations as RBS files or comments.โ€œ

๐Ÿ†•ย Cรฉdric Delalande created a new gem โ†’ zed-test-toggle - โ€œA small gem to toggle between source and test in the Zed editorโ€œ

๐Ÿ†•ย OpenAI released a new gem โ†’ openai-ruby - โ€œOpenAIโ€™s official Ruby SDKโ€œ

Source: @alexrudall

๐Ÿ†•ย Nagendra Dhanakeerthi released a new gem โ†’ mcp_on_ruby - โ€œA Ruby implementation of the Model Context Protocolโ€œ

๐Ÿ†• Burhan Gardezi published a new repository rails_interview_questions - A collection of Rails interview questions categorized by topics

๐Ÿงฐ Updates

๐Ÿงฐย Justin Bowen announced a new version of activeagent - โ€œActiveAgent Rails framework for Agent Appsโ€œ

๐Ÿงฐย Carmine Paolino released a new version of ruby_llm - โ€œA delightful Ruby way to work with AI. No configuration madness, no complex callbacks, no handler hell โ€“ just beautiful, expressive Ruby codeโ€œ

Source: @paolino

๐Ÿงฐย Yudai Takada / Ydah released a new version of RuboCop RSpec v3.6.0 (RubyKaigi 2025 Edition๐ŸŠ)ย - โ€œCode style checking for RSpec filesโ€œ

๐Ÿงฐย Kasper Timm Hansen announced an update for oaken - โ€œOaken upgrades your development seeds, lets you reuse them in tests & blends the best of fixtures & factories into one cohesive wholeโ€œ

๐Ÿงฐย David Heinemeier Hansson announced an update for Kamal - โ€œDeploy web apps anywhereโ€œ. For more details, check out this PR โ†’ Maintenance modeย #1497

Source: @dhh

๐Ÿงฐย Mario Alberto Chรกvez announced a new version of Rails MCP Server with HTTP Server-Sent Events support

๐Ÿงฐ Alexey Varfolomeev announced a new version for RubyMine 2025.1: Major AI Assistant Upgrade, Cloud-Based Code Completion for RBS, More Ruby 3.4 Support, Kamal Schema Updates, Enhanced RemDev, and More

Source: @rubymine

๐Ÿคย Gregory Brown shared a critical insight about generative AI in coding. Here is just a part, you can check all details from this thread on Bluesky

More content: ๐Ÿ“š ๐Ÿ—ž ๐ŸŽง ๐ŸŽฅ โœ๐Ÿพ

๏ธ๐Ÿ“š Irina Nazarova posted her slides from TropicalOnRails 2025 โ†’ Startup on Rails

๐Ÿ—ž Newsletters

๐Ÿ—žย Ruby On Rails published a new edition of This Weekin Rails about Ruby on Railsโ€™ Improved leap year counting performance and more!

๐Ÿ—žย Hotwire Weekly published a new edition about Week 16 - Introducing Herb, JSX over the Wire, and more!

๐Ÿ—ž Sajjad Umar published a new edition about Ruby on Rails โ€” April 2025

๐Ÿ—ž Awesome Ruby Newsletter published a new article about ๐Ÿ’Ž Issue 465 - Kotlin, Swift, and Ruby losing popularity

๐ŸŽง Podcasts

๐ŸŽง David Hill published a new podcast โ†’ Ode to RailsConf - Jim Remsik

๐ŸŽง Brendan Buckingham published a new podcast โ†’ Rails Business - John Nunemaker

๐ŸŽง Remote Ruby published a new podcast about โ†’ John Nunemaker

๐ŸŽง The Bike Shed published a new podcast about โ†’ 459: Paper Data Structures with Sally Hall

๐ŸŽฅ Videos

๐ŸŽฅ wrocloverb published the videos from the conference at wroc_love.rb 2025

โœ๐Ÿพ Articles

Whatโ€™s new ๐Ÿ†•

๐Ÿ†• Abdelkader Boudih published a new article about LLMs and the Ossification of APIs: Are We Stuck with Prehistoric Patterns?

๐Ÿ†• Mike Perham published a new article about Sidekiq 8.0: Profiling

๐Ÿ†• Marco Roth published a new article about Introducing Herb: A new HTML-Aware ERB Parser for smarting developer tooling

๐Ÿ†• Akshay Khot published a new article about Fix N+1 Queries Without Eager Loading Using SQL Subqueries

๐Ÿ†• Philip Poots published a new article about HTML Gardening with Herb and about HTML Parsley with Herb

๐Ÿ†• Henry Maddocks published a new article about Letโ€™s talk about Type Coercion in Ruby

๐Ÿ†• Jake Zimmerman published a new article about Typing instance variables in mixins

๐Ÿ†• Josua Schmid published a new article about web-console and processes

๐Ÿ†• Cody Brooks published a new article about Can YOU Still Receive Connections At REDIS_URL

๐Ÿ†• Jeffery Morhous published a new article about Is No PaaS really a good idea for Rails?

๐Ÿ†• Gavin Morrice published a new article about On the importance of syntax and semantics; How Ruby's power lies in its beauty

๐Ÿ†•ย Jeffery Morhous published an article about Is No PaaS really a good idea for Rails? - Honeybadger Developer Blog

๐Ÿ†• Thomas Riboulet published a new article about Pre-build a Secure Authentication Layer with Authentication Zero for Ruby on Rails

๐Ÿ†•ย Jakob Skjerning published a new article about Driving View Transitions with Hotwired/Turbo

๐Ÿ†• Joey Wang published a new article about Addressing Out-of-Order Updates in Concurrent Systems

How-TOs ๐Ÿ“

Mateus Pereira published a new article about Setting Up Rails with Dev Containers

๐Ÿ“ย Rodrigo Nogueira published a new article about Creating APIs with Grape and Rails: A Complete Journey - Part 2

๐Ÿ“ย Pete Hawkins published a new article about How to Supercharge Ruby on Rails Development with Cursor AI

๐Ÿ“ Aaron Sumner published a new article about Old Ruby and Rails on new hardware with dev containers

๐Ÿ“ Tejas Bubane published a new article about Add IP restriction on Rack app for specific accounts

๐Ÿ“ Harrison Broadbent published a new article about Blogging with Ruby, Middleman and Tailwind CSS and about Add an RSS feed to your Middleman Blog

๐Ÿ“ Nikhil published a new article about How to Use Enum Attributes in Rails Models for Cleaner Code

Avdi Grimm published a new article about How to Understand a New Codebase Quickly

Jamie Schembri published a new article about Your Dependencies Are Not Free

Sean Goedecke published a new article about A practical guide to coding securely with LLMs

Brooke Kuhlmann published a new article about Git Rebase Squash

All issues