πŸŽ‰ 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

πŸš€ Launches and discounts

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

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

οΈπŸ’» 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

οΈπŸ’» 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.

οΈπŸ“ 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

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

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

πŸ‘€ Keep an eye on

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

πŸ—ž Newsletters

πŸ—ž Ruby Weekly published a new edition about How Ruby's IDE experience continues to improve

πŸ—ž 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

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

πŸŽ₯ 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

πŸŽ₯ Jet Brains Ruby Mine published a new video about RubyMine Inspections Overview: Improve Ruby Code Quality

✍🏾 Articles

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

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

πŸ†• 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

πŸ“ 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

Reply

or to participate.