Short Ruby Newsletter - edition 113

The one where we have two web framework releases, Rails 8 and Hanami 2.2, and two Rubies releases, Ruby 3.3.6 and JRuby 9.4.9.0 - it is the best time to code!

Presented by

Table of Contents

(ad πŸ‘‡)

Unlock Windsurf Editor, by Codeium.

Introducing the Windsurf Editor, the first agentic IDE. All the features you know and love from Codeium’s extensions plus new capabilities such as Cascade that act as collaborative AI agents, combining the best of copilot and agent systems. This flow state of working with AI creates a step-change in AI capability that results in truly magical moments.

Download It Free Today

πŸš€ Launches and discounts

πŸš€Β Ruby Cademy launched Presale: RubyCademy Cards - 1st Edition

Source: @RubyCademy

πŸš€Β Rob Race launched Rails Simple Auth - Unlock Rails 8 Authentication

πŸ“… Events

πŸ“…Β Brighton Ruby announced videos from 2024Β are up and the tickets for 2025 are on sale

πŸ‘‰ Ruby Conf shared about Ruby Conf Hack Day

Source: @rubyconf

πŸ“… Check RubyConferences.orgΒ for meetups or conferences happening this week and don’t forget to submit yours if you are organising one.

πŸ‘‰ All about Code and Ruby

πŸ‘‹ Please take a few seconds to reflect if you want to upgrade your newsletter subscription to a paid version. You will enjoy an ad-free edition and support the newsletter for as low as 8$ per month. Here are more reasons why I think you should upgrade to paid.

πŸ‘‰ Takashi Kokubun announced Ruby 3.3.6 Released

Postmodern announced that Ruby 3.3.6 is added to ruby-install: Installs Ruby, JRuby, TruffleRuby, or mruby

πŸ‘‰ David Heinemeier Hansson announced Rails 8.0: No PaaS Required

Source: @dhh

Nony DuttonΒ added:

πŸ‘‰ J Ruby Dev Team announced a new version of JRuby 9.4.9.0 Released

Source: @jruby

πŸ‘‰ Hanami announced Hanami 2.2: Persistence pays off

πŸ‘‰ Andy Croll is looking for more mentors for Find a mentor in the Ruby community | First Ruby Friend

Source: @andycroll

πŸ’» Code Samples

οΈπŸ’» Xavier Noria shared about using Module#set_temporary_name:

Source: @fxn

Other ways to achieve the same:

Source: @pankowecki

Source: @_m27e

πŸ’» Samuel Williams shared in context of running bundler in paralell about configuring MAKEFLAGs:

οΈπŸ’» Josh Branchaud shared about Prefer select_all Over execute For Read Queries

πŸ’» Ufuk Kayserilioglu shared about the all-ruby tool

Source: @ufuk.dev

πŸ’» Thiago AraujoΒ shared a code sample

Source: @thd.codes

οΈπŸ’» RoR vs Wild shared about importing a lot of records:

Source: @rorvswild

️ Esparta shared a code sample about literals - Documentation for Ruby 3.4

οΈπŸ’» Ruby Cademy shared a code sample about normalizes macro:

Source: @RubyCademy

οΈπŸ’» Lucian Ghinda shared about ruby/debug gem:

οΈπŸ’» Ahmed Nadar shared Common Issues with Rails Textarea Whitespace Behaviour

Source: @ahmednadar

οΈπŸ’» Ruby Cademy shared about using immutable_string:

Source: @RubyCademy

they also shared about:

Source: @RubyCademy

οΈπŸ’» Brad Gessler shared a code sample about using Phlex:

Source: @bradgessler

οΈπŸ’» Yaroslav Shmarov shared how they implemented Cmd+Enter for submitting comments:

Source: @yarotheslav (read on Threadreader)

Source: @yarotheslav

οΈπŸ’» Vincent Rolea shared about implementing resume the session:

Source: @vincentrolea (read on Threadreader)

πŸ’» Stan Lo announced that RDoc got ancestor list in the class page’s sidebar thanks to Alex Bernard contribution:

Source: @_st0012

πŸ’» Maciej Mensfeld shared about Precompute embedded string literals hash code by etiennebarrie Β· Pull Request #10596

πŸ’» Samuel Williams shared a benchmark about the performance of async-http + protocol-http + protocol-rack:

Source: @ioquatix

οΈπŸ’» Γ­talo Matos shared a code sample about Refinements:

Source: @italomatos

πŸ“ Thinking about Code Design

οΈπŸ“Β Jorge Manrubia shared about Systematic system tests considered harmful

Source: @jorgemanru

οΈπŸ“Β Jason Swett shared about how to think about authorization:

Source: @JasonSwett

οΈπŸ“Β BenjamΓ­n Silva H. shared the performance from enabling jemalloc:

Source: @bsilva96

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

πŸ’‘Ruby On Rails shared [RF-DOCS] Action Controller Overview and Advanced Topics Guides [ci-skip] by bhumi1102 Β· Pull Request #53551 Β· rails/rails

Source: @rails

πŸ’‘Β Colby Swandale shared they are introducing a Maintainer Role at RubyGems Blog

❀️ Why Choose Ruby and Rails

❀️ Typecraft shared about Rails 8:

❀️ Irina Nazarova shared about being louder about Ruby:

🧰 Gems, Libraries, Tools and Updates

πŸ†• New Gems and Repos

πŸ†•Β Olly Headey open-sourced their web-app - pagecord - A minimalist blogging app powered by email

πŸ†•Β Stephen Margheim announced a new gem called chaotic_job - Test ActiveJobs for reliability and resilience

πŸ†•Β Nate Hopkins announced a new gem local_bus: A lightweight pub/sub system for decoupled intra-process communication in Ruby applications

You can see a demo of LocalBus on Youtube.

πŸ†•Β John Hawthorn announced a new gem delta_debug - This implements Andreas Zeller's Delta Debugging ddmin algorithm, which aims to take a failing test input and reduce it to a smaller failing input

πŸ†•Β Alessandro Rodi announced a new gem of hotsheet: Manage your database with a simple and familiar web interface

Source: @coorasse

πŸ†•Β Vladislav Trotsenko published a new gem called ruby-rspec-mock - RSpec dual mocking compatibility. Use RSpec's mocks as secondary, alongside a primary, alternative mocking library.

🧰 Updates

🧰 Avo announced a new version of Avo 3.14 - Ο€ - Explicit authorization, reload individual rows, and eject controllers

🧰 Jean Boussier announced a new release of ruby/json 

🧰 Peter Solnica announced a new version of dry-rb - dry-operation v1.0 - Introduction

🧰 Jeremy Evans announced a new version of by 1.1.0 Released · jeremyevans/by · Discussion #5

🧰 Mari Imaizumi announced a new version of Release v0.5.11 · ruby/reline · GitHub

Source: @ima1zumi

🀝 Samuel Williams shared about default configurations:

Source: @ioquatix

️🀝 Xavier Noria shared about API docs:

Source: @fxn

🀝 Jason Swett shared about programming as creative work:

Source: @JasonSwett

️🀝 Jeremy Smith an advice about setting up AWS S3 buckets for developers:

🀝 Bilal Hussain shared lesser-known (or better said used) HTML features (here is the first part - but click to see the entire image)

🀝 Kyrylo Silin shared about Zsh repeat command:

Source: @kyrylosilin

🀝 Akash Manohar shared about setting Stripe:

Source: @HashNuke

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

πŸ—ž Newsletters

πŸ—ž This Week In Rails published a new article about Rails 8.0: No PaaS Required

πŸ—ž Hotwire Weekly published a new article about Week 45 - Hotwire Live Reload, Alpine.js as an alternative, and more!

πŸ—ž Ruby Weekly published a new article about This one's for Jason Seifer

πŸ—ž Awesome Ruby Newsletter published a new article about Issue 442 - Low-poly image generation using evolutionary algorithms in Ruby

🎧 Podcasts

🎧 The Rails Changelog published a new podcast about The Rails Changelog | 028: Discussing Ruby’s Data class, some Ruby quirks with Victor Shepelev

🎧 David Hill published a new episode of Ode to RailsConf about Ashley Ellis Pearce

🎧 Jason Swett published a new podcast about The Code with Jason Podcast - Code with Jason

🎧 Thoughtbot published a new podcast about The Bike Shed: 445: Working Iteratively

🎧 RemoteRuby published a new podcast about Solid Cable with Nick Pezza

πŸ“½οΈ πŸŽ₯ Videos

πŸŽ₯Β Ruby Conf published a new video about Ruby Talks: Sebastian Suttner of Cedarcode on Supporting Ruby Central & RubyConf

πŸŽ₯Β Confreaks, Llc published the videos from Rocky Mountain Ruby 2024

πŸŽ₯Β Emmanuel Hayford published a new video about How to Create a Custom Offline Fallback Page with Rails

πŸŽ₯Β Dean De Hart published a new video about Rails 8 FTP Server with Kamal 2 and SFTP Go

πŸŽ₯Β Thoughtbot published a new video about AI in Focus: Answer questions from internal documentation with AI

πŸŽ₯Β Jeremy Smith published a new video about This week I setup 2 CDNs for Liminal, here's how (and why)...

πŸŽ₯Β Kaleb Lape published a new video about Your Rails app security checklist and about Three reasons CSS-Zero belongs in your Rails 8 stack

✍🏾 Articles

What’s new πŸ†•

Ruby Central published an article about A New Chapter for RubyGems: How Ruby Central is Building a Sustainable Future

Kasper Timm Hansen published an article about How to Grok a Rails Application for the First Time

Julian Rubisch published an article about The Ultimate Guide to implementing Hotwire and Turbo in a Rails application

Andrey Marchenko published an article about How We Built a Ruby Library That Saves 50% in Testing Time

Andrea Fomera published an article about Why (and when!) I use ViewComponents

Thomas Countz published an article about Low-Poly Image Generation using Evolutionary Algorithms in Ruby

Felipe Vogel published an article about Alpine.js as a Stimulus alternative | Felipe Vogel

JoΓ«l Quenneville published a new article about 4 tips when getting started with Hotwire

Greg Molnar published a new article about Deploying a Jekyll site with Kamal

Hugo Vast published an article about My journey to send 100 mails to 500k effortlessly

Dimiter Petrov published a new article about "We don't deploy on Fridays"

JuliΓ‘n PinzΓ³n Eslava published an article about Customising Single Table Inheritance mapping in Active Record

William Kennedy published a new article about Up and Running with Hotwire Native iOS 3 - Bridge Components

JetThoughts published an article about Ruby on Rails 8: Custom Compression for Encrypted Data

Alexandre Barret published an article about Perfecting Your Rails Form: Nested Attributes

BestWeb Ventures published an article about Ruby on Rails 8 Concurrency Guide: Modern Parallel ProcessingΒ and about Web Application Security in Ruby on Rails: A Comprehensive Guide 2024

Joey Wang published an article about From CI Nightmares to Reliable Builds: A Developer's Guide to Retry Mechanisms

Prasanth Chaduvula published an article about Rails 7.1 Adds exclude? And extract_value methods To ActionController::Parameters

Ahmed Nadar published an article about Common Issues with Rails Textarea Whitespace Behaviour

Rails Designer published a new article about Store UI State in localStorage with Stimulus

How-TOs πŸ“

Exequiel Rozas published a new article about Friendly URLs with the FriendlyId gem

Mika Henriksson published an article about How to use kamal destinations and about Server provisioning for a kamal setup

Paul Sturgess published an article about How to Deploy a Ruby on Rails Application to Katapult Using Kamal 2

Stefan Wienert published an article about Postfix + ActionMailbox - integrating into existing postfix server by using aliases + curl command

Shah Zaib published an article about Handling Errors and Job Lifecycles in Rails 7.1: Master ActiveJob with retry_on, discard_on, and after_discard

Kevin Sylvestre published an article about Using GraphQL with LLMs in Ruby

Reni Mercier published an article about Poking around PostgreSQL full-text search: a beginners primer

All issues