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

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

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

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

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

Videos

Talks

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

Reply

or to participate.