🎉 Short Ruby News - Edition #100

Stay up-to-date on the latest launches, events, code samples, videos, and articles in the Ruby world. Don't miss out on what's happening in our community!

This is a fantastic milestone for the Short Ruby Newsletter - 100 editions. I took some time to describe how I feel about it in a short post.

You can jump directly to a section:

🚀 Launches & 📅 Events

👉 All about Code and Ruby: 💻 Code, 📐Code Design,💡Around, ❤️ Why Choose Ruby

🧰 Gems, Libraries, and Updates: 🆕 New, 🧰 Updates

🤝 Related (but not Ruby-specific)

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

🚀 Launches and discounts

🚀 Olly Headey launches Feedgrab: A modern, beautifully simple, FREE, all-in-one RSS reader

🚀 Kasper Timm Hansen launched their newsletter  My Intro to Domain Modeling with riffing: The Bike Shed & RailsConf talk

🚀 Bradley Taunt launched wruby - a simple, minimal site generator written in Ruby

📅 Events

📅 Y Combinator and Evil Martians are organizing a Ruby Meetup at the Y Combinator San Francisco HQ on 13th August. Register here to participate

📅 Helsinki Ruby Brigade announced call for their next meetup → Give a talk

📅 Ruby Conf India opened Call for Proposals - RubyConf India 2024

📅 Y Combinator is having a Ruby Meetup on August 13 in its San Francisco HQ

👉 All about Code and Ruby

👉 Nagachika announced a new version of Ruby released: Ruby 3.2.5 Released - read the full release notes

💻 Code Samples

💻 Peter Solnica speaks on why one should never use to_hash as a method for dumping object to a hash

Here is Lucian’s take on the same:

💻 Victor Shepelev shared a thread and wrote a deep dive about the Range Ruby class:

️💻 Matt Swanson shared a code sample from their product (you should also read the article they wrote about Event sourcing for smooth brains: building a basic event-driven system in Rails)

💻 Lucian Ghinda shares a thread about Hash Value Omission feature in Ruby. You can read the full article about this feature here.

️💻 Michael Chaney shared a code sample about object oriented programming:

️💻 Haseeb Annadamban shared a code sample about connecting to different roles in Rails:

️💻 Lucian Ghinda shared how to use hash value omission to access keyword arguments that is labeled like a Ruby reserved keyword:

️💻 ️Ruby Cademy shared a tip to combine the `Singleton` module and `Concurrent::Hash` to create a thread-safe configuration manager in Ruby.

They also shared a tip on `Array#extract_options!` method:

Yet another tip on ActiveRecord::SpawnMethod#merge

️💻 Haseeb Annadamban shared a tip on how to add temporary query methods to an ActiveRecord::Relation object

️💻 Marian Posăceanu shared a common mistake made while trying to avoid N+1 queries

️💻 Nate Hopkins shared a gist about a simple template rendering: Simple Template Rendering · GitHub

️💻 Haseeb Annadamban shared  Let's Start Using Rails Attributes API:

️💻 Ruby Cademy shared about using Singleton and Concurrent Ruby to build a thread-safe counter in Rails:

👉 Alazycoder shared about using Tracepoint:

📐 Thinking about Code Design

️ ️📐 Nate Berkopec shares about fixtures being faster than factories in CI test suites.

Alexandre Ruban added:

️📐 Chris Oliver shared how to handle passing arguments to before/after/around callbacks

️📐 Ross Kaffenberger shared about Turbo and breaking out of Turbo frame:

Matt Swanson replies with suggesting a solution:

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

💡 Tobi Lutke shared about LLM benchmarks should include Ruby and offered to sponsor efforts to include Ruby:

💡 David Heinemeier Hansson shared that 37signal’s HEY has adopted Solid Queue, bidding its farewell to Resque:

❤️ Why Choose Ruby

❤️ Donn Felker shared about how they are using Ruby on Rails:

❤️ Elisa shares why she feels people shouldn’t move away from rails after she experiments with Node:

❤️ Jose Farias shares his love for Rails and I bet you agree too.

❤️ Onur özer shares his take on the most underrated features of Rails

❤️ Donn Felker shared how much more productive he was with Ruby.

❤️Jason Leow shared how much they love Rails:

❤️ Ivan Morgillo shared about building PWAs with Rails:

❤️ Tim Abdulla shared how productive one can be with Rails:

❤️ Charles Oliver Nutter shared about benefits of using JRuby:

🧰 Gems, Libraries, Tools and Updates

🆕 New Gems and Repos

🆕 Nate Hopkins announced a new gem hopsoft/fmt: A simple template engine based on native Ruby String formatting mechanics

🆕 Ian Ker-Seymer published a new gem called nicetest - offering a CLI, pretty assertion diffs, pre-configured reporters, focus checks, and colorful backtrace filters for seamless test running

🆕 Andres Chacon published a new gem oas_rails - Rails engine for generate automatic interactive documentation in your rails APIs

You should also read the article introducing this new gem Generating Documentation for Your Rails API: I Build My Own Tool

🧰 Updates

🧰 Stephen Margheim announced a new feature added to Rails - Ensure SQLite transaction default to IMMEDIATE mode (you should also read Stephen's article about this: SQLite on Rails: Improving concurrency)

🧰James announced a new version of  mocha - A mocking and stubbing library for Ruby

🧰 Jeremy Evans announced a new version of Rodauth 2.36.0 Released · jeremyevans/rodauth - GitHub

🧰 Vinicius Stock shared a new Ruby LSP feature.

🧰 Chris Oliver announced a new version of Revise Auth 

🧰 Postmodern announced a new release of Ronin - a Free and Open Source Ruby Toolkit for Security Research and Development. It includes a lot of new libraries:

🧰 Andrei Kaleshka published a new version of actual_db_schema - Wipe out inconsistent DB and schema.rb when switching branches. To do that, install this gem and use the standard rake db:migrate command

👀 Keep an eye on

👀  Dima Fatko announced a PR for Rails about Support batching using custom columns by fatkodima · Pull Request #52384

👀 Nao Yonashiro submitted a new bug in Ruby tracker about Memory allocation for gsub has increased from Ruby 2.7 to 3.3 

🤝 Related (but not Ruby-specific)

🤝 Matheus Richard shared about using ARIA selectors with Tailwind:

🤝 James Potter shared a code sample about sending simple alerts to Telegram:

🤝 Donn Felker shared What PWA Can Do Today

🤝 Donn Felker shared about “dry promotions”:

More content: 📚 🗞 🎧 🎥 ✍🏾

📚 Okura Masafumi shared their slides about How NOT to make your DSL terrible

📚 Marco Roth shared their slides about Developer Tooling For The Modern Hotwire & Rails Era - RedDotRubyConf 2024

📚 Hasumi Hitoshi shared their slides about A Beginner’s Complete Guide to Microcontroller Programming with Ruby

🗞 Newsletters

🗞 Ruby Weekly published a new edition about How Ruby's IDE experience continues to improve

🗞 Ruby On Rails published a new edition about  Model Missing Attributes, SQLite Immediate Transactions, and CVV/CVC Parameter Filtering by default

🗞 RubyCentral published a new edition about July 2024 Newsletter

🗞 Awesome Ruby Newsletter published a new edition about Awesome Ruby Newsletter | 427

🗞 Hotwire Weekly published a new edition Week 30 - Inline Saving, Stimulus Image Gallery, and more!

🎧 Podcasts

🎧 Indie Rails published a new podcast about IndieRails | Back in the Saddle

🎧 The Bike Shed published a new podcast about The Bike Shed: 434: Git and GitHub Workflows

🎧 Remote Ruby published a new podcast about There is no A in JSON

🎧 The Ruby on Rails Podcast published a new podcast about Episode 520: Backend Accessibility with Hilary Stohs-Krause

🎧 Thoughtbot published a new podcast about CFP season and tips for having your talk selected for a conference.

📽️ 🎥 Videos

🎥 Irina Nazarova shared the videos from the SF Bay Area Ruby Meetup in July @ Cisco Meraki by Evil Martians 

🎥 Nick Taylor published a video about All Things Rails 

Screencasts

🎥 Pascal Laliberté published a new video about Working in Stimulus, generating some HTML markup with `document.createElement`...

🎥 Drifting Ruby published a new video about Soft Limits and about Kanban from Scratch

🎥 Chris Oliver published a new video about Adding Honeybadger Insights To The RubyGem (Example)

🎥 Graceful.Dev published a new video about How are "methods" and "messages" different in Object-Oriented programming and a teaser about the Endless Methods in Ruby

🎥 Lukasz Reszke published a new video about Hotwire, Turbo Drive, Frames and Streaming. Long Live Server Side Rendering 👑 with SPA experience and about Turbo streaming (aka broadcasting)

🎥 Jet Brains Ruby Mine published a new video about RubyMine Inspections Overview: Improve Ruby Code Quality

🎥 Jason Swett published a new video about Reorganizing My Tests, Fixing Active Build Link Bug - Live Coding on SaturnCI and about Implementing Auto-Scroll for Terminal Output

✍🏾 Articles

✍️ Stan Lo published an article about Mastering Ruby Code Navigation: Major Ruby LSP Enhancements in the First Half of 2024

✍️ Matt Swanson published an article about Event sourcing for smooth brains: building a basic event-driven system in Rails

✍️ Pierre de La Morinerie published an article about Exploring Rails codebases: Writebook

✍️ Andrew Atkinson published a new article about What’s Coming in Ruby on Rails 7.2: Database Features in Active Record

✍️ Stan Lo published a new article about Mastering Ruby Code Navigation: Major Ruby LSP Enhancements in the First Half of 2024

✍️ Thoughtbot published a new article about RailsConf 2024 highlights

✍️ Alexandre Calaça published a new article about Efficient Ruby Coding: A Guide to Immediate and Non-Immediate Objects

✍️ Haseeb Annadamban published a new article about Building Custom Generators in Rails

What’s new 🆕

🆕 Mohammad A. Ali published a new article about LiteCluster: Replicated, leaderless, ACID compliant & high availability SQLite

🆕 Mati published an article about Inline Save and Add Another with Rails and Hotwire | Rails Designer

🆕 Greg Navis published a new article about Micro-interactivity without Stimulus | Greg Navis

🆕 Steven Wanderski published a new article about DoList: A free and open source alternative to Todoist

🕵️ Deep-Dive

🕵️ Victor Shepelev published How it became like this? Ruby Range class

🕵️ Jake Zimmerman published an article about Generic methods cannot have non-generic defaults in Sorbet

🕵️ Alexey published an article about Persistent Redis Connections in Sidekiq with Async::Redis: A Deep Dive

🕵️ Lucian Ghinda published an article about Understanding Hash Value Omission in Ruby

How-TOs 📝

📝 Michael Chaney published an article about Adding A Confirmation Interstitial On Create in REST

📝 Rails Designer published an article about Inline Save and Add Another with Rails and Hotwire

📝 Hugo published an article about a guide to generate PDF📜 using Prawn in your Rails project

📝Ahmed Nadar shared a quick tip for cleaning comments and empty spaces in your Gemfile.

📝 Hrishi Mittal published an article about How to build an image gallery in Rails with Stimulus

📝 Darya Sharkova published an article about How to use Stimulus in your Rails apps with RubyMine

All issues