Short Ruby Newsletter - edition 123

The one with Ruby 3.4.2 release and a new JRuby release, while Aaron Patterson article was on front page of Hacker News

In partnership with

Table of Contents

(ad)

Here’s Why Over 4 Million Professionals Read Morning Brew

  • Business news explained in plain English

  • Straight facts, zero fluff, & plenty of puns

  • 100% free

πŸš€ Launches and discounts

πŸš€ Joel Drapper announced the release of Phlex 2.0:

πŸš€ Offer Lab launched their own product offerlab.com

Source: @OfferLabHQ

πŸš€ Donn Felker announced the Hotwire Native Android course is now complete:

Source: @donnfelker

πŸš€ Wilbert Liu launched a new tool Markdown to email:

Source: @wilbertliu

πŸš€ Ruby Central shared a new initiative: community spotlight 

πŸš€ JMD launched a new app Owl.so

Source: @jmd.fm

πŸš€ Andrea Fomera announced alpha testing for Spin CLI

Source: @afomera.dev

πŸ“… Event

πŸ“… Ruby Central announced the openings for Scholars and Guides program

πŸ“† You can find the full list of conferences, meetups, open CFPs on rubyconferences.org

πŸ‘‰ All about Code and Ruby

πŸ‘‰ k0kubun announced the release of Ruby 3.4.2

πŸ‘‰ postmodern-mod3.bsky.social brings good news: Ruby 3.4.2 is ready to install πŸ₯³ 

πŸ‘‰ Aaron Patterson published an article about Tiny JITs for a Faster FFI in CRuby

You should also check the comments on Hacker News

πŸ‘‰ Peter Cooper shared a GitHub Gist with some conventions to help build Rails apps using LLMs

Source: @cooperx86

πŸ’» Code Samples

οΈπŸ’» Ahmed Nadar shared a code sample about Turbo Streams: Immediate vs. Delayed broadcasting

Source: @ahmednadar

οΈοΈπŸ’» Kyrylo Silin shared some code samples about using Comparable#clamp method

Source: @kyrylosilin

The code sample he provided first:

Source: @kyrylosilin

Simplifies to this after refactoring ✨:

Source: @kyrylosilin

οΈπŸ’» Michael Chaney shared a bug story about a trailing comma in his code

οΈπŸ’» Alessandro Rodi shared a way to customize Turbo’s failed request messages

Source: @coorasse

οΈπŸ’» Ruby Cademy shared how handy has_many macros are in Rails

Source: @RubyCademy

οΈπŸ’» OKURA Masafumi shared a code sample about Ruby’s string justification methods:

πŸ’» Dave Copeland shared a handy Ruby pattern for smarter factory methods

And then follows up with:

οΈπŸ’» Ruby Cademy shared a smoother way to handle unknown attributes

Source: @RubyCademy

οΈπŸ’» Bob Head shared a trick for quick sitemap refresh with Kamal

πŸ’» Prem Sichanugrist shared his discovery πŸ•΅πŸΌβ€β™‚οΈ: the absence of no implicit β€œitβ€œ in rescue blocks

Source: @sikac.hu

and Xavier Noria pointed to a solution ⚑️:

Source: @fxn.bsky.social‬

οΈπŸ’» Ruby Cademy shared a code sample about using to_set for array comparison

Source: @RubyCademy

πŸ’» Jason Charnes shared a code sample about numeric nonzero

πŸ’» Henrik Hauge BjΓΈrnskov posted how to use β€œclass_variantsβ€œ with Flex

Source: medium.com

Joel Drapper brought some alternatives for Henrik’s code:

οΈπŸ’» Ruby Cademy posted a code sample about defining a custom ActiveModel type

Source: @RubyCademy

πŸ“ Thinking about Code Design

οΈπŸ“ Ismael Celis shared a code sample about real-time view layer event sourcing

πŸ“ Xavier Noria shared insights about Ruby method performance optimization:

οΈπŸ“ Igor Alexandrov published that his team is migrating to Minitest

And his network immediately replied πŸ‘¨β€πŸ’»:

οΈπŸ“ Irina Nazarova shared some insights from SFRuby:

Source: @inazarova

πŸ“ Noel Rappin asked about common Bundler/Rubygem troubleshooting scenarios

Here are some responses:

β€ͺ@bradgessler.com‬

πŸ“ Xavier Noria shared some words on clearer module decoration

Plus an extra information:

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

Source: @hsbt.org

πŸ’‘ Dean De Hart reminded us about a Game Boy emulator written in Ruby: Ruby Boy

Source: @Deaniocom

πŸ’‘ Zil N asked about Rails productivity hacks

Source: @zilasino

And the responses rolls in 🀩:

Here is the presented gem by William Estoque: awesome-print

Source: @westoque

Source: @dpaluy

πŸ’‘ Avi Flombaum reflected on AI code generation with the focus on Hotwire and Stimulus

Source: @aviflombaum

❀️ Why Choose Ruby and Rails

❀️ Elvinas Predkelis shared his positive amazement with the Rails ecosystem:

Source: @predkelis

❀️ Jorge Manrubia highlighted the impressive productivity of 37signals team

Source: @jorgemanru

❀️ Michael Koper reinforced Jorge’s point: Rails indeed empowers small teams to build big things:

❀️ Mark Allen shared the capabilities and the power you hold when building apps, dismissing the downfall of Ruby on Rails:

❀️ Michael Schwab shared about Ruby on Rails:

Source: @schwabsauce

🧰 Gems, Libraries, Tools and Updates

πŸ†• New Gems and Repos

Source: @rameerez

🧰 Updates

🧰 J Ruby Dev Team rolls out a new version of JRuby - 9.4.12.0

🧰 Phusion B.V. presented a new version of Passenger 6.0.25

🧰 Brad Gessler released an update on mailto

🧰 Ismael Celis announced an update about his event sourcing app with a demo

🧰 Bozhidar Batsov announced a new version of RuboCop

Here is also the plugin migration guide

🧰 Samuel Williams announced a new version of rocketry/rubydns

Source: @ioquatix

🧰 postmodern-mod3.bsky.social announced an update for Ronin

🀝 Zeke Gabrielse spoke about the founder’s paradox

Source: @_m27e

🀝 Nate Berkopec shared some thoughts on web performance metrics

🀝 Michael Chaney talks about the importance of using constants and meaningful names instead of magic numbers

🀝 Andrew Atkinson shared his experience with query optimization

This post brought the following questions:

🀝 Justin Jackson shared his thoughts on Why AI Won't Replace Web Developers

More content: πŸ“š πŸ—ž 🎧 πŸŽ₯ ✍🏾

πŸ—ž Newsletters

πŸ—ž This Week In Rails published a new edition about Routes Lookup Optimizations, PostgreSQL Alter Table improvements and more!

πŸ—ž Ruby Weekly published a new edition about Using JITs for faster FFI in Ruby

πŸ—ž Hotwire Weekly published a new article about Week 07 - Hotwire Native Cameras, OfferLab's Success, and more!

πŸ—ž Awesome Ruby Newsletter published a new edition about Issue 456 - Tiny JITs for a Faster FFI

🎧 Podcasts

🎧 Pablo shared a new episode about: On tests and RSpec

🎧 Remote Ruby published a new episode about: So Long, and Thanks for All the BETs! - Remote Ruby

🎧 The Ruby On Rails Podcast published a new episode about Episode 532: Hotwire Native with Joe Masilotti

πŸŽ₯ Videos

πŸŽ₯ Thoughtbot published a new video about Live coding on AI projects

️πŸŽ₯ Irina Nazarova shared a link to the livestream from SFRuby Meetup 2025

πŸŽ₯ Boulder Ruby published new video resources: Presentation Night Meetup Videos

πŸŽ₯ Dave Kimura shared a new video about Frozen String Literal

✍🏾 Articles

What’s new πŸ†•

πŸ†• Ruby Gems published a new article about January 2025 RubyGems Updates

πŸ†• Greg Molnar published an article about The state of Security in Rails 8

πŸ†• Aaron Patterson posted an article about Tiny JITs for a Faster FFI in CRuby

πŸ†• Pat Shaughnessy published a new article about Using Different Size Pools

πŸ†• Charles Oliver Nutter published a new article about Boosting JRuby Startup with AppCDS and AOT caching

πŸ†• Shane P. published an article about Turbo Streams and design

πŸ†• Dave Thomas published a new article about Source Files: Keep Code Local

πŸ†• Michiharu Ono published an article about How (and How NOT) to Name Rails Models Beyond the Obvious

πŸ†• Josef Strzibny published a new article about Combining multiple sitemaps with a sitemap index

πŸ†• Davide Santangelo published an article about Building a Tiny Language Model (LLM) in Ruby: A Step-by-Step Guide - V3

πŸ†• Kyrylo Silin published a new article about OKLCH CSS variables for Tailwind v4 colors

πŸ†• Saeloun Blog published a new article about Rails 8 Adds A New Script Folder By Default And Scripts Generator.

πŸ†• Jeremy Smith shared an article about Electronic Signatures with Rails

πŸ†• Pedro Leonardo published an article about Email Verification with Sent Codes in Ruby on Rails without Devise

πŸ†• Julie Kent published an article about Rails async queries by example

How-TOs πŸ“

πŸ“ Rails Designer published a new article about How to Send Requests from Stimulus Controllers

πŸ“ JoΓ«l Quenneville published a new article about How to customize ids in URLs in your Rails app

πŸ“ Brooke Kuhlmann published a new article about RSpec Configuration

πŸ“Dave Kimura published a new article about How to fix asdf 0.16.x which "broke" my ruby version

✍️ Pascal Laliberté shared an article entitled Not Killing It where he talks about what comes with progress

✍️ Rails Designer published a new article about Build Features from the Outside In

✍️ Zeke Gabrielse published a new article about The outlier paradox

✍️ Reni Mercier published a new article about How I use git add –patch for reviewing my work

✍️ Ryan Bigg published a new article about Ghosts 'n' Stuff

✍️ Victor Cobos published a new article about Hide Scrollbars While Keeping Scrolling Intact

Reply

or to participate.