Short Ruby Newsletter - edition 116

The one where Rails World, Friendly.rb and EuRuKo announced the dates for 2025 conferences and Marco Roth announces rubytriathlon.com

Table of Contents

(ad 👇)

There’s a reason 400,000 professionals read this daily.

Join The AI Report, trusted by 400,000+ professionals at Google, Microsoft, and OpenAI. Get daily insights, tools, and strategies to master practical AI skills that drive results.

Sign up now for free and work smarter, not harder.

🚀 Launches and discounts

There are still a lot of discounts still available for Ruby developers. I added them all to this article:

🚀 Stanislav Katkov launched hooks.poshtui.com

Source: @5katkov

🚀 Marco Roth launched rubytriathlon.com - Ruby Triathlon: A Journey of Growth and Inspiration

📅 Events

📅 Rails World, EuRuKo and Friendly.rb announced the dates for their 2025 conferences:

Source: @rails

Source: @euruko

📆 Two conferences announced their CFPs: Baltic Ruby CFP at PaperCall.io - Baltic Ruby and Tropical on Rails at PaperCall.io - Tropical on Rails 2025

Source: @balticruby

Source: @tropical_rb

📆 Check https://rubyconferences.org for the upcoming Ruby conferences. You will find two conferences happening in December if you want to close the year with going to a conference and all scheduled Ruby conferences for 2025 up until September 2025.

📆 Check https://rubyconferences.org/meetups for the upcoming meetups this week. There are 16 meetups scheduled around the world between 02 December and 08 December 2024

👉 All about Code and Ruby

If you want to support the newsletter, you can upgrade to paid subscriber at https://subscribe.shortruby.com

👉 Jorge Manrubia announced a surprise for Hotwire:

Source: @jorgemanru

👉  Tobi Lutke shared stats from Shopify BlackFriday event:

Source: @tobi

Source: @dhh

💻 Code Samples

️💻 Postmodern asked about array.fetch(index,0) versus array[index] || 0

Here are some replies:

💻 RoRvsWild shared a code sample about avoiding retunring from model’s method:

jmhmccr added:

💻 Nate Berkopec shared the latency numbers every Ruby on Rails dev should know:

️💻 Matt Swanson shared a code sample about using code design to guide developers to use the correct implementation:

Source: @_swanson

💻 RoRvsWild shared a code sample about enqueuing a lot of jobs really fast:

💻 JP Camara shared a thread about calculating the largest known prime number by using the latest PR about Do not round a**b to infinity by mame · Pull Request #12033 that will be part of Ruby 3.4:

💻 Bozhidar Batsov shared a code sample about touching a file in Ruby by using File.open(path, ‘a’) {}:

Source: @batsov.net

💻 Jeremy Smith shared about Stimulus pain points and proposed a solution 

💻 Gregory Brown shared a code sample about an inline template experiment:

Later Gregory followed up with another code sample:

💻 Mike Perham shared a code sample about running CI against multiple Redis flavors:

💻 Jan Dudulski shared a code sample from their Decide gem:

️💻 Svyatoslav Kryukov shared a code sample about assigning stable names to roles:  inertia_rails_svelte5_ssr/config/deploy.yml at main · skryukov/inertia_rails_svelte5_ssr

️💻 Ruby Cademy shared a code sample about using ActiveSupport::BacktraceCleaner

Source: @RubyCademy

Source: @RubyCademy

📐 Thinking about Code Design

️📐Remi Mercier asked about how to trigger a bunch of turbo streams right after the initial request

Here are some replies:

📐 Noel Rappin shared about treating application.rb and environments files immutable:

Here are some replies:

Source: @rossta.net

📐 Gregory Brown shared a thread about how to read code. I am including here just a part of the thread:

📐 Zack Gilbert shared about using Pagy gem with custom select values in the query:

️📐 Benjamín Silva H. asked about if the loops benchmark can be optimized. The code is the one that runs on benjdd.com/languages

Source: @bsilva96

Among other replies:

Source: @k0kubun

Source: @timtilberg

Source: @grashalm_

️📐 Nate Berkopec shared about enabling term_on_timeout when using rack-timeout/doc/settings.md at main

💡Around code (news, findings, books, and more - all about Ruby)

💡 Emmanuel Hayford shared that Rails has a dedicated guide for Tuning Performance for Deployment

💡 Tropical.Rb asked about recommendations for people just getting started with Rails:

Source: @tropical_rb

Here are some replies:

Source: @kevinvzb

Source: @fabiosammy

💡 Marco Roth shared that www.rubyvideo.dev/contributions accepts contributions:

Source: @marcoroth_

❤️ Why Choose Ruby and Rails

❤️ Yaroslav Shmarov shared about Hotwire Native:

Miles Woodroffe added:

❤️ Svyatoslav Kryukov shared about Rails 8 developer experience:

❤️ Sergy Sergyenko shared that Ruby is used to power space exploration:

❤️ Greg Molnar shared a code sample about Rails:

Source: @GregMolnar

🧰 Gems, Libraries, Tools and Updates

🆕 New Gems and Repos

🆕 Yaroslav Shmarov announced a new gem hotwire_native_rails - Hotwire Native generator for Rails applications

🆕 Harry Lascelles announced a new gem dememoize - A rubygem to remove memoized values (instance variables) for easier testing

🆕 Marcus Almeida announced a new gem curlify - The gem convert ruby requests(net/http) into curl command

🆕 Samuel Williams announced a new project socketry/async-discord

Source: @ioquatix

🆕 Svyatoslav Kryukov announced a new demo repo skryukov/inertia_rails_svelte5_ssr

🆕 Nemo published a new gem jekyll-sqlite - A Jekyll plugin to use SQLite databases as a data source

🆕 Adrien Siami announced a new gem Intrepidd/hyperactiveform: Simple form objects for Rails

🆕 Onyx announced a new gem for Pinata library pinata-ruby

🧰 Updates

🧰James announced a new release for mocha - Mocking and stubbing library with JMock/SchMock syntax

🧰 Mike Dalessio announced they are working on a PR to allow loading of SQLite extensions easier - easier and more flexible loading of sqlite extensions

🧰 Joel Drapper announced that Literal 1.3 is out:

🧰 Samuel Williams announced a new version of Add support for standard retry-after rate limiting. · socketry/async-rest@d971c0c

Source: @ioquatix

🧰 Janko Marohnić announced a new version of Release v0.6.0 · janko/rodauth-omniauth

👀 Keep an eye on

🧰 Stan Lo announced an open PR for [DOC] New homepage for docs.ruby-lang.org/en by st0012 · Pull Request #12227 · ruby/ruby

Source: @_st0012

🤝 Adam Wathan shared a tip about not using !important :

🤝 Kyrylo Silin shared about how JavaScript creates a global variable with the same name that references the element:

Source: @kyrylosilin

🤝 Jason Swett shared  about the art of abstraction:

Source: @JasonSwett

🤝 Kuba Suder shared a tip about curl

Source: @mackuba.eu

More content: 📚 🗞 🎧 🎥 ✍🏾

🗞 Newsletters

🗞 Hotwire Weekly published a new edition about Week 48: Super Solid Cable, Tailwind 4 beta, and more!

🗞 Ruby On Rails published a new edition about Ruby on Rails — Rails World 2025 dates announced and more!

🗞 Ruby Central published an article about November 2024 Newsletter

🗞 Awesome Ruby Newsletter published a new edition about Issue 445 - Rails is better low code than low code

🎧 Podcasts

🎧 David Hill shared a podcast about Mina Slater

🎧 Alan Ridlehoover published a new podcast about Episode 2 - So DRY It Chafes

🎧 Indie Rails published a new podcast about Good Enough and the Cosmic Maelstrom

🎧 Joël Quenneville and Stephanie Minn published a new podcast about 448: Other Uses for Tests

🎧 Thoughtbot published a new podcast about Giant Robots Smashing Into Other Giant Robots: 552: Scaling an Online Telehealth Experience with Aakash Shah

🎧 The Ruby On Rails Podcast published a new article about Episode 528: Working In Tech With ADHD with Chris Ferdinandi

🎧 Jason Charnes, Chris Oliver, Andrew Mason published a new episode of RemoteRuby about Ruby Developer Experience with Vini Stock

📽️ 🎥 Videos

🎥 Sergy Sergyenko published an Interview with Yukihiro Matz Matsumoto at Baltic Ruby

🎥 Guillaume published a new video about Deploying production, staging and review apps environments automatically with Kamal in 20 minutes

🎥 Chris Oliver published a video about Creating a Ruby Gem for Black Friday sales

🎥 Kaleb Lape published a new video about How AI Helped Me Understand My Own Rails Code Rails 2024 and about Rails 8 + AI + Tailwind The Ultimate Design System Tutorial 2024

🎥 Jason Swett published a video a video about OOP Design Interview Question - My Answer

✍🏾 Articles

What’s new 🆕

Chetan Mittal published an article about The Ultimate Rails Version Migration Checklist for 2025: A Complete Guide

Adrien Siami published a new article about Avoid constantize in Rails

Ayush published an article about Server-sent Events and WebSockets in Rack for Ruby

Mario Alberto Chávez published a new article about Nobuild with Rails and Importmap

Miles Woodroffe published an article about Super Solid Cable

JP Camara published an article about My docker setup for hacking on CRuby, about Counting C method calls in CRuby and about Calculating the largest known prime in Ruby

Lucas Mendelowski published a new article about Hotwire vs HTMX vs Unpoly

Rails Designer published an article about Stimulus Features You (Didn’t) Know

Ender Ahmet Yurt published an article about Accessing Values in a Hash with dig in Ruby: Differences and Alternatives

Jônatas Davi Paganini published an article about Building a Better Ruby ORM for Time Series and Analytics

Josef Strzibny published a new article about Using non-root users in Kamal

Rails Designer published an article about Inline Unsupported Browser Warning (using Rails 7.2 feature)

Mintbit Rubyland published a new article about Safe Navigation Operator vs. Explicit Nil Check: Which is Better?

Prasanth Chaduvula published an article about Rails 8 Allows drop_table To Accept An Array Of Table Names

Blazej published a new article about My Journey Through Ruby Event Manager, Hangman, and Tackling Coolant Leaks

Henrique Caltram published an article about The Decorator Pattern: A Ruby On Rails approach for data presentation logic

Daniel-Penaloza published an article about Rails API + Cache + Design Patterns

Rob Zolkos published a new article about Beware Tailwind Color Changes

Olumuyiwa Osiname published an article about Mastering Rails and Ruby: A Collection of Practical Tips for Cleaner Code

Lucian Ghinda published a new article about How to make a small pulsating animation

How-TOs 📝

Adrian Marin published a new article about Add Social Login to a Rails app

Stefan Wienert published an article about ZUGFeRD/X-Rechnung: create required XML+PDF invoice format for EU compliance for 2025 in Ruby + Ghostscript

Rob Zolkos published an article about Upgrading Rails applications to Tailwind 4

Chetan Mittal published an article about Rails 8 Upgrade Guide 2025: Step-by-Step Instructions for a Smooth Transition

Tom de Bruijn published an article about Switching Zellij and Vim panes with ease

Nick Charlton and Silumesii Maboshe published a new article about Automating barcode scanner tests with Capybara

Hugo Vast published an article about Handbook to migrate your Postgres from Heroku to Kamal

Gowsik Vivekanandan published a new article about Implementing Passwordless Authentication with WebAuthn in Rails

Morgana Borges published an article about Safe Navigation Operator vs. Explicit Nil Check: Which is Better?

Ahmed Nadar published a new article about Implementing Friendly URLs with UUID-Based Models

All issues