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 πŸ‘‡)

Learn AI in 5 Minutes a Day

AI Tool Report is one of the fastest-growing and most respected newsletters in the world, with over 550,000 readers from companies like OpenAI, Nvidia, Meta, Microsoft, and more.

Our research team spends hundreds of hours a week summarizing the latest news, and finding you the best opportunities to save time and earn more using AI.

πŸš€ 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

πŸ“… 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:

❀️ 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

πŸ†• Samuel Williams announced a new project socketry/async-discord

Source: @ioquatix

πŸ†• Svyatoslav Kryukov announced a new demo repo skryukov/inertia_rails_svelte5_ssr

πŸ†• Onyx announced a new gem for Pinata library pinata-ruby

🧰 Updates

🧰 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:

Source: @ioquatix

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

πŸ‘€ Keep an eye on

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

🎧 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

πŸŽ₯ Chris Oliver published a video about Creating a Ruby Gem for Black Friday sales

πŸŽ₯ Jason Swett published a video a video about OOP Design Interview Question - My Answer

✍🏾 Articles

What’s new πŸ†•

Adrien Siami published a new article about Avoid constantize in Rails

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

Miles Woodroffe published an article about Super Solid Cable

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

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

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

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

Rob Zolkos published a new article about Beware Tailwind Color Changes

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

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

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

Reply

or to participate.