🙌 Short Ruby News - Edition #73

Discover what's new in Ruby 3.3, merged PRs for Rails 7.1, and plans for Rails 8 and Turbo 8. This edition covers the last two weeks of 2023 and the first week of 2024.

You can jump directly to a section:

🚀 New Products & 📅 Events

👉 All about Code and Ruby (Ruby 3.3.0, Rails 8 and more)

🧰 Gems, Libraries, and Updates

More content: 📚 🗞 🎧 🎥 ✍🏾 (articles, podcasts, videos, newsletters)

[Sponsor ⬇] reinteractive.com

The reinteractive Application Code Review is a deep dive into your application, providing you a complete window into the state of your app.

🚀 New Products

🚀 Hans Schnedlitz launched Data Dead Drop

🚀  Stan Lo shared that Yuta Saito created a new  Ruby Playground

🚀 Hasumi Hitoshi announced the new website for PicoRuby Introduction | PicoRuby Documentation

🚀  Thoughtbot launched Introducing Superglue: React ❤️ Rails

đź“… Events

📅 Friendly.rb shared that the tickets are on sale at friendlyrb.com and that all videos from last year are now available:

📅 Euruko shared the new location for EuRuKo 2024:

👉 All about Code and Ruby

👉 Ruby 3.3.0 was released on 25 December 2023

Here are some resources about this release:

👉 Jean Boussier shared that Shopify monolith is running on Ruby 3.3.0

👉 Aaron Patterson invited us to use jemalloc:

👉  Matouš Borák shared about performance gains with Ruby 3.3:

👉 Nate Berkopec shared a feature of Ruby 3.3 [Feature #19437] Add marking and sweeping time to GC.stat by peterzhu2118 · Pull Request #7304 · ruby/ruby

👉 Rails 7 releases and Rails 8 plans and releases

SolidQueue

Rosa Gutiérrez announced the release of SolidQueue and wrote a great article about it at Introducing Solid Queue

👉 Jorge Manrubia shared more Rosa’s work and features found in SolidQueue:

👉 David Heinemeier Hansson announced they are already running millions of jobs every day through Solid Queue:

👉 Adrian Marin announced an UI in Avo for SolidQueue - Rails App Template - Solid Queue

👉 Vincent Rolea shared a tip when migrating to SolidQueue:

Other resources to read or watch:

Rails 8

David Heinemeier Hansson announced a series of topics/PRs about Rails 8 and Github Milestone for Rails 8

Add allow_browser to set minimum versions for your application

Default to creating GitHub CI files by dhh · Pull Request #50508 · rails/rails

Add Brakeman by default to new apps by vipulnsward · Pull Request #50507 · rails/rails

importmaps-rails changes: Drop the bundled shim, Pinning should just always download, Preload all by default:

Add rate limiting to Action Controller via the Kredis limiter type by dhh · Pull Request #50490 · rails/rails

He also shared they plan to launch Action Notifier:

zzak merged Add rubocop-rails-omakase to new Rails applications by zzak · Pull Request #50486 · rails/rails

Add default pwa manifest and service worker file by dhh · Pull Request #50528 · rails/rails

rubocop-rails-omakase - Omakase Ruby styling for Rails:

A placeholder for discussing Add basic authentication generator · Issue #50446 · rails/rails

👉 Stephen Margheim shared about Rails renaissance in 2024:

DHH replied with:

There are a couple of articles talking about the new features in Rails 8 or about Turbo 8:

👉 Ruby On Rails shared a tip about image_tag, audio_tag and image_tag:

👉 Samuel Williams shared performance benchmark for that falcon - A high-performance web server for Ruby

👉 Xavier Noria shared a preview of their new book:

👉 Vidar Hokstad shared a code sample showing a RB-tree balance function:

👉Jason Garber shared a behavior of  class IO - Documentation for Ruby 3.2

👉 Xavier Noria shared about coding rules:

He continued with:

👉 Deepak Mahakale shared a tip about using to_fs instead of strftime:

👉 David Heinemeier Hansson shared the Gemfile for Once:

👉 Andrei Bondarev shared a thread with results from the Ruby AI survey. Here is one of the posts from the thread:

👉 Nate Berkopec shared a discussion about the default Puma thread count. Read the entire discussion on Github. It is a good debate with great arguments: Set a new default for the Puma thread count · Issue #50450 · rails/rails 

👉 Jesper Christiansen shared a tip about doing redo for Rails migrations:

👉 Mike Coutermarsh shared how to scale web apps with Rails:

📚 Leanpub shared there are discounts on two books: Build A SaaS App in Rails 7 and Gradual Modularization for Ruby and Rails 

👉 Ruby Cademy shared a tip about using Rails acts_like? method:

👉 Facundo Espinosa shared about the process of updating gem versions:

👉 Maciej Mensfeld shared a code sample about exactly once transaction in Karafka:

👉 Matt Swanson shared a tip for simplifying assertions:

👉 Dima Fatko shared a tip about using Bumbler: Track the load progress of your Bundler-based projects to improve boot time:

👉 David Heinemeier Hansson shared a code sample about implementing Ratelimiter:

👉 Facundo Espinosa shared how to use outdated and audit importmap commands:

👉 Dima Fatko shared a performance tip about Speedup activerecord tests by fatkodima · Pull Request #47499 · rails/rails

👉 Hans Schnedlitz shared a code sample based on Diceware - Wikipedia

👉 Ruby On Rails shared a tip about mailer callbacks using before_deliver and after_deliver:

👉 Marc Köhlbrugge shared an image about database tables:

👉 John Nunemaker shared a code sample for a Storage used in Telemetry in Ruby Part 1: Metrics and Storage

👉 Matheus Richard shared a code sample showing how you can define constants inside constants:

📚 Pragmatic Programmers shared Pragmatic Bookshelf: By Developers, For Developers

đź§° Gems, Libraries, Tools and Updates

🆕 🧰 蒼時弦也  announced a new project  hanami-lambda: Hanami Lambda is a gem that provides a way to run hanami application on AWS Lambda.

🧰 Brooke Kuhlmann announced a new version for  Milestoner

🆕 🧰 Mike Ray Arriaga announced a new library stimulus-inline-input-validations - Watch the Screencast for Stimulus Inline Input Validations. Here is one of the examples of how this library might work:

🆕 🧰 Kevin Newton announced a new gem parser-prism: A prism backend for the whitequark/parser gem

🧰 Petrik De Heus shared a PR about  Add `explain` support for methods like `last`, `pluck` and `count` by p8 · Pull Request #50482 · rails/rails

🧰Postmodern announced the release of  version 0.5.0 · postmodern/command_kit.rb

🧰 Camilo announced the release of version 1.0.0 for standard-rails - A Standard Ruby plugin that configures rubocop-rails

🆕 🧰 Ryan Kulp announced a new gem methodz - Supercharge Ruby "methods()" helper

🆕 🧰 Franck Stéphane Ndzomga published a new gem mistral_rb - An Easy-to-Use Mistral API Wrapper for Ruby Developers

🧰  Takashi Kokubun shared they finished the implementation of  Implement `it` by k0kubun · Pull Request #9199 · ruby/ruby

🧰 Vladimir Dementyev announced a new version of Release 1.0.0 · ruby-next/ruby-next

🧰 Kevin Newton announced that prism backed stree is coming soon:

🧰 Nate Hopkins announced a new version of TurboBoost Commands - see the PR here and he shared a video walkthrough:

🧰 Andrei Kaleshka announced a new version of Phantom migrations status rake task by ka8725 · Pull Request #35 · widefix/actual_db_schema

🧰 Gene M. Angelo, Jr. announced a new version of dsu- dsu is little gem that helps manage your Agile DSU (Daily Stand Up) participation

🆕 🧰 Niklas Häusele announced a new version of email_error_reporter: Report your Rails errors via email

🆕 🧰 Matheus Richard announced a new gem code_picture: Transform your code into pixel-art - read the article at Turn Your Code Into Pixel Art

🧰 Stephen Margheim announced a merged PR to Rails about Allow overriding SQLite defaults from `database.yml` Pull Request #50460 · rails/rails

🆕 🧰 Borja Garcia De Vinuesa Ordovás announced a new version ofrails_session_cipher: a Ruby gem providing an efficient and secure way to encrypt and decrypt Rails session cookies using AES-256-GCM cipher

🧰 蒼時弦也 announced a new version of boxing - The zero-configuration Dockerfile generator for Ruby.

🧰 Thomas Cannon shared a script about Tiptap document renderer using Phlex

🧰 Cameron Dutro announced a merged PR to view_component addressing CVE-2024-21636 - Ensure Html Output Safety By Camertron · Pull Request #1950 · View Component/View Component

🆕 🧰 Dewayne Van Hoozer published a a new gem called aia - AI Assistant (aia) a Ruby Gem for using genAI on the CLI

More content: 📚 🗞 🎧 🎥 ✍🏾

Ruby Conf published the conference videos at RubyConf 2023 (San Diego)

Blue Ridge Ruby published the conference videos about Blue Ridge Ruby

Friendly.rb published the conference videos at Friendly.rb 2023 - Bucharest September 27 & 28

đź—ž Newsletters

🗞 zzak published a new edition of This Week in Rails about Omakase RuboCop, Brakeman, Ruby 3.1+, allow_browser, rate_limit, an...

🗞 Nate Berkopec published a new edition of The Ruby/Rails performance newsletter about When You Should Ignore GC

🗞 Hotwire Weekly published a new edition about  Week 01 - Welcome to 2024!

🗞 Emmanuel, Greg, Vipul, Wojciech, and Zzak published a new edition of This week in Rails about This year in Rails, a summary of 2023

đź—ž Ruby Weekly published a new edition New Year, New Ruby

đź—ž Awesome Ruby Newsletter published a new edition Issue 398 - Inheritance in Ruby, in pictures

đź—ž RubyRadar published a new edition about First One of the Year

🎧 Podcasts

🎧  Kelsey Hightower published a talk on Twitter Space about Scheduled: On-Premises with DHH

🎧 Ruby For All published a new podcast about Teaching Code, Shaping Futures — John Crepezzi on Ruby, Bootcamps, and AI

🎧 Ruby Rogues published a new podcast about Unraveling Ruby's AI Journey with Alex Rudall - RUBY 619

🎧 The Rails Changelog published a new podcast about 017: A deeper dive into Zeitwerk with Xavier Noria

🎧 Adrian Marin published a new episode of Friendly Show about Season 1 Finale

🎧 Indie Rails published a new podcast about IndieRails | Ayush Newatia Unplugged - Writing Code and Writing Prose

🎧 Ruby Rogues published a new podcast about Turbo 8 Unpacked: Cutting-Edge Features, Open Source Wins

🎧 The Ruby on Rails podcast published a new episode about Ruby For All Crossover!

📽️ 🎥 Videos

Screencasts

🎥 Jason Swett published a new video about SaturnCI - Building Two Independently-Scrollable Panes

🎥 Ken Greeff published a new video about Construction Manager - Part 2

🎥 Joe Masilotti published a new video about Daily Log code deep dive - Authentication

🎥  Nate Hopkins published a video about a preview of ActiveRecordETL (see it on nitter) and about a preview of ActiveRecord Forge (see it on nitter)

🎥 Andrei Bondarev published a new video about Live coding Langchain.rb Assistants

Talks

📽️ Gavin Morrice published a new video about REST for Rails Engineers

📽️ Kevin Menard published a new video about BlueRidgeRuby2023: Making Ruby Fast(er) - Kevin Menard

📽️ Jenny published a new video about RubyConf 2023 - Demystifying the Ruby package ecosystem by Jenny Shen

📽️ Montreal.rb published a new video about Ruby Talk 2023/12 Building Llm Powered Applications Andrei Bondarev and about Anatomy of a Payment - Michel Jamati

📽️ Wei Zhe published a new video about When Neovim meets Ruby on Rails - ror.nvim

✍🏾 Articles

What’s new 🆕

Kyle Keesling published an article about  Migrating from Sidekiq to Solid Queue

Apoorv Tiwari published an article about Rails 7.1 Introduced Validate Option For Enums

Philip Mueller published an article about The Mystery Of Rails’ <Code>Lib/</Code> Folder

Stan Lo published an article about  Unveiling the big leap in Ruby 3.3’s IRB

Brandon Keepers published an article about How To Make Web Analytics Valuable For Rails Apps 

Stephen Margheim published a new article about How (and why) to run SQLite in production

Amanda Perino published a new article about Ruby On Rails &Mdash; Reflecting On 2023: Rails Foundation's Inaugural Year

Stephen Margheim published a new article about SQLite Quick Tip

Jake Zimmerman published an article about Abstract Singleton Class Methods Are An Abomination and Inheritance In Ruby, In Pictures

Rafael Peña-Azar published an article about Forging The Future Of Blockchain Development (With Ruby)

Deep Dives 🔍

Alkesh Ghorpade published an article about Conquering Code Clutter A Guide To Rails Concerns

Felipe Vogel published an article about  Coming to grips with JS: a Rubyist's deep dive

John Nunemaker published an article about Telemetry in Ruby Part 1: Metrics and Storage

Akshay Khot published an article about Why You Need Strong Parameters In Rails

How-TOs 📝

Erik Minkel published an article about Deploy An App With SQLite, Active Storage And Kamal

Rob Zolkos published a new article about Debugging production ActionMailbox issues in development

Luan Gonçalves published an article about This Is The Way… The Callable Way The Miners

Joe Ferris published an article about Route Based Scaling On Kubernetes For Rails Monoliths

Harrison Broadbent published an article about Edit Rails Credentials using VS Code

Dave Kimura published a new article about Self Hosted Github Actions Runner

Paweł Pacana published a new article about Repository implementation on ActiveRecord

Josh Smith published an article about Connecting Debugger To Rails Applications

Web Crunch published a new article about Best Practices for Naming Models in Ruby on Rails

Hans Schnedlitz published a new article about Continuous Deployment with GitHub Actions and Kamal

Michał łęcicki published an article about From Celluloid To Concurrent Ruby: Practical Examples Of Multithreading Calls Blog Visuality

Michał Dulat published an article about How A Simple Http Header Mismatch Led To Cache Poisoning

Prasanth Chaduvula published an article about Automate Fly Postgres Database Backup & Store To S3 Bucket With Git Hub Actions

Related

Salvatore Sanfilippo published a new article about LLMs and Programming in the first days of 2024

Miles published an article about Looking back on 2023

All issues