Short Ruby News - Edition #30

Briefly about everything happening in Ruby world - week 7 of 2023 (email version)

You can jump directly to a section:

๐Ÿ‘ย Our Community

๐Ÿ‘‰ย All about Code and Ruby

๐Ÿงฐย Gems, Libraries, and Updates

๐Ÿคย Related (but not Ruby-specific)

More content: ๐ŸŽฅ ๐ŸŽง ๐Ÿ—žย (articles, podcasts, videos, and newsletters)

๐Ÿค— Founding Members supporting this newsletter

Consider upgrading to paid

Investing in the Ruby Weekly Newsletter as a paid subscriber is a valuable way to support the community around you. For ~1.5$/week (6.5$ per month), you can support its growth and ensure that high-quality information about the latest developments in Ruby continues to be available to everyone, both paying and non-paying subscribers alike.

If you consider upgrading and want more information, please read Why to subscribe to paid

๐Ÿ‘ Our Community

๐Ÿ‘ Tiago Casanovaย asked an essential question in our community:

๐Ÿ‘Helvetic Rubyย announced the Call for speakers is open:

๐Ÿ‘ Aaron Pattersonย shared that Mastodon is now running on Ruby 3.2 (check the PR):

๐Ÿ‘ Dave Paolaย shared a possible risk about how to make it so that we listen not only to good news but also we listen to critique and discuss it openly:

The thread has some nuances, and it is recommended that you read it in full and with good intentions :)

Here is a short discussion from the replies:

๐Ÿ‘ ruby30thย announced the list of lightning talks had been released.

Check the list here (or in English translated by Google here)

๐Ÿ‘ Drew Braggย shared that the next Philly.rb that will happen on 21 February will be online and will have as guest Joel Drapper, the creator of Phlex

You can register here

๐Ÿ‘Emmanuel Hayfordย celebrates the effort made by Petrik de Heus and zzak to improve Rails Guides:

๐Ÿ‘ Ruby Unconfย announced the dates for Ruby Unconf 2023:

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰Nate Berkopecย shared a quick heuristic to decide between doing a call to DB or using Ruby:

He added an example:

๐Ÿ‘€ If you're a company or manager looking to hire top Ruby on Rails talent, I'd like to introduce you to RailsDevs (referral link). This unique platform puts the power back in the hands of developers by allowing them to post their profiles and empowering companies to reach out to them. I believe in the value RailsDevs can bring to the hiring process, and I'm confident you will.

๐Ÿ‘‰Postmodernย shared a benchmarking of dynamic dispatch (send) vs literal methods calls (check the code here):

๐Ÿ‘‰Sbย shared a code sample showing how they are using Phlex.fun at their own project Chestnut

Ok Phlex is just great.Even with a quick first pass on https://gochestnut.app/, it's opening up so much opportunity for cleaning up views.Having your views as objects means all your normal refactoring patterns suddenly become easy.https://www.phlex.fun/

๐Ÿ‘‰ Nicolas Buduroiย shared a code sample showing how to fix colors in IRB:

๐Ÿ‘‰ Noah Gibbsย started a discussion about the reason behind blindly adopting adopt Rubocop/Standard rules:

Here are some of the most interesting replies/followups, but I invite you to read the entire thread:

๐Ÿ‘‰Dave Copelandย shared their thoughts about abstractions:

๐Ÿ‘‰ Joel Drapperย shared a code sample showing how phlex-rails can work with the native Rails layout system:

๐Ÿ‘‰Robby Russellย shared a take that writing useful automated tests is not very easy:

๐Ÿ‘‰Study Every Dayย shared asked about how to stop the Rails console autocomplete:

There were a couple of answers in the replies:

This will be disabled in the next Rails release. See this PR

๐Ÿ‘‰Eric Berryย asked about how to approach upgrading a large Rails app:

In the replies, there are recommendations for using one of these gems: deprecation_toolkit, next_rails or bootboot.

And also some more general advice:

๐Ÿ‘‰Janko Marohniฤ‡ย shared a code sample showing how to configure test environment in Rails app to speed up boot time:

๐Ÿ‘‰Eric Berryย shared a code sample showing a bash command to run rails commands using separate Ruby versions:

๐Ÿ‘‰David Terenย asked about the recommended approach for Rails API pagination:

Among the recommendations:

๐Ÿ‘‰Emmanuel Hayfordย shared a poll about upgrading to Rails 7.1. Based on the answers (194 votes) seems that more than 50% will upgrade very quickly to Rails 7.1:

๐Ÿ‘‰Kevin Newtonย shared the way Ruby lexer disambiguate the do keyword

๐Ÿ‘‰Greg Navisย shared a thread about how object allocation and initialization are two different steps in Ruby:

๐Ÿ‘‰Josef Strzibnyย shared a code sample showing how to run a Rake task from inside the Rails application:

๐Ÿ‘‰Prabin Poudelย shared a Rails method named up_only that will run code only when creating a new table:

๐Ÿ‘‰Eric Berryย shared a code sample showing how to use Phlex with Hanami:

๐Ÿ‘‰Tom Hockettย shared a piece of code asking about the usage of nonzero?:

Konnor Rogersย answered with:

๐Ÿ‘‰Josef Strzibnyย shared a code sample about how to use use Rack tasks to pass environment variables:

๐Ÿ‘‰Mohit Sindhwani (Onghu@Ruby.Social)ย shared the second part of their series about Ruby Learning by Reversing: Native Gems, Part 2

๐Ÿ‘‰Andrea Roccaย shared a thread about how to create with Hotwire a multiple select input (similar to StackOverflow question tags):

๐Ÿ‘‰Josef Strzibnyย shared the difference between flash.delete and flash.discard

u/empty_glass_mug asked on /r/rails a question about how to onboard a big Rails app:

Among the best answers is the following from /u/GreenCalligrapher571. From their answers, here is the part about the technical project, but please read the full answer:

๐Ÿงฐ Gems, Libraries, and Updates

๐ŸงฐAvoย released version 2.26, which includes fixes and improvements: Read the release notes

๐Ÿงฐ Brad Gesslerย announced they are working on a new project called rowdy that will route web requests to classes:

๐ŸงฐHeartcomboย announced the release of Devise v.4.9.0 Read the change log:

They also followed up with the following:

Yaroslav Shmarov already published a video showing how the new device works. Watch it here

๐Ÿงฐ Chris Oliverย announced that Jumpstart Pro is now ready for Turbo StreamActions:

๐Ÿงฐ The Bundler Teamย announced a new release of bundler v.2.4.7. Read the release notes

๐Ÿงฐ Samuel Williamsย shared they released a VSCode extension for Sus Test Provider is now on the VScode Marketplace:

๐Ÿงฐ Josef Strzibnyย announced they released a new version of InvoicePrinter. Read the release notes

๐Ÿงฐ Joel Drapper published a new version of Phlex v.1.4.0. Read the changelog here

๐ŸงฐMaciej Mensfeldย announced the new Karafka Web UI - Your Ruby and Rails out-of-the-box Kafka UI: Read the release notes

๐Ÿงฐ Ernestoย announced a new version of database_cleaner. Read the changelog

๐Ÿงฐ Lรกzaro Nixonย announced they implemented a passwordless feature for the authentication-zero gem

๐Ÿงฐ A new version of tanakai was released that adds support for Ruby 3.

๐Ÿงฐ Nick Nick Schwadererย submitted a bug about a performance regression happening between Ruby 2.7 to Ruby 3.2. Read the bug here

๐Ÿค Related (but not Ruby-specific)

๐ŸคSebastian Wilgoszย shared some excellent advice for content creators about how to stay motivated:

Here are two of the points he shared, but you should read the entire thread:

๐Ÿค Robby Russellย shared advice about how to make the onboarding of new devs work:

More content: ๐ŸŽฅ ๐ŸŽง ๐Ÿ—ž

๐Ÿ—ž Newsletters

๐Ÿ—žGreg Molnarย published a new edition of This Week in Rails: preloading associations with composite keys and more!

๐Ÿ—ž๏ธย Ruby Weeklyย published a new edition:ย Getting Rustier with Ruby

๐Ÿ—ž Ruby Radar published a new edition Ruby Radar #90 - This Week in Ruby Radar

๐Ÿ—ž๏ธย Ruby LibHuntย published a new edition of theย Awesome Ruby Newsletter

Podcasts

๐ŸŽงAndy Crollย shared a new episode of Maintenable with Robby Russell: Andy Croll - Keep the Weird Stuff Weird | Maintainable

๐ŸŽงThe Ruby on Rails Podcastย published a new episode The Ruby on Rails Podcast Episode 457: This Week In Rails with Emmanuel Hayford

๐ŸŽงRemote Rubyย published a new episode Spicy Takes with Matt Swanson

๐ŸŽง Ruby Roguesย published a new episode Keeping Up With The Currents

๐ŸŽง Ruby for Allย published a new episode about Favorite Ruby Methods: Part 3 - Strings

Videos

Talks

๐Ÿ“ฝ๏ธ The Rubber Duck Dev Showย published a new episode Getting Stuff Done With Drew Bragg

๐Ÿ“ฝ๏ธ Nate Berkopecย published a video showing Puma 6.1: New Feature Overview

Screencasts

๐ŸŽฅ Deanin published four new videos:

๐ŸŽฅ Peter Hawkins published two new videos:

๐ŸŽฅ Yaroslav Shmarov published two new videos:

๐ŸŽฅ The Ruby Learning Center published a new video streamed by Brandon Weaver covering Effective Testing in RSpec 3 - Ch 6

Articles

Whatโ€™s new

How-Tos

Deep Dives

More general

๐Ÿค— Founding Members supporting ShortRuby

Read more about what is a Founding Member or about Why pay for ShortRuby newsletter

All issues