Short Ruby News - edition #32

Briefly about everything happening in Ruby world - week 9 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

✋ I am helping organise the Friendly.rb conference:

There are still few (but not so many) early-bird tickets available and of course the call for speakers is still open in case you are thinking to submit a talk proposal.

👐 Our Community

👐 📢 I am launching a new section in this newsletter called Community. The main purpose of this section is to publish content related to this newsletter or to have calm conversations about important topics about the Ruby community.

You can read more about what I plan to do with this new section in the Community - introduction.

👐 Aurelie Verrot shared a piece from Hired report

Here are two more quotes from the report:

And maybe graph showing the hottest IC skills vs average:

👐Ruby Central announced that they support Mastodon Development:

👐 Andy Croll shared that FirstRubyFriend is looking for Portuguese speaking mentors and people from Asian and African countries.

Register as a mentor or mentee on FirstRubyFriend.org:

👐 Tom De Bruijn announced they updated the Rails Girls Guides:

If you know someone interested to learn Ruby, you can recommend them the Introduction to Ruby section from RailsGirls that was recently added.

👐 Brad Gessler shared a thread about how they think Rails is losing juniors:

I will not try to summarize the thread here as I think it is good to read it as it was shared because it includes explanations for each point. If you are not on Twitter you can read the thread via nitter here or via threadreaderapp here

Here are some replies to that thread trying to look at various causes than the technology:

There are many great replies there ,so you should read the entire discussion.

It is also worth mentioning two resources shared in that thread:

It is also worth reading the thread shared by Devanil Junior:

👐 Chris Oliver announced BeginnerBounties - a place where people can post bounties about programming tasks for juniors:

👐 R Spec Bdd For Ruby announced that RelishApp is down and invited us to read the article published by Matt Wynne about Relish:

🤞 If you like this newsletter and can afford to pay ~1.50$/week to support it

👉 All about Code and Ruby

👉Nate Berkopec shared performance advice saying that upgrading Ruby usually pays off:

👉Noel Rappin shared an update about Programming Ruby 3.2 book:

He also added:

👉Cédric Delalande shared how to a documentation showing that using blocks for log messages allows running interpolation only when the log level is matched:

Adam shared another nice trick:

👉Joel Drapper shared a performant result of a Ruby web stack he is using:

👉Mika Henriksson shared a performance improvement from running Ruby via jemalloc:

👉Rishi Pithadiya shared a code sample showing ActiveSupport inflectors:

👉Nate Berkopec shared an advice about performance between select and pluck:

👉Sam Saffron replied with a PR from discourse showing discourse fast_pluck.rb patch:

👉Mika Henriksson shared a TIL about Active Record pick:

👉Kirill Shevchenko shared a code sample showing Composite pattern in Ruby:

👉Kow shared a series of code samples exploring various ways to define routes in Camper:

👉Greg Molnar shared how to use each_with_index to start counting from 1:

👉Marc Köhlbrugge shared a thread with resources (videos) about Ruby:

Here are the channels shared in that thread:

👉Mario Schüttel shared a code sample showing how min and max behave on negative ranges:

Benoit Daloze replied explaining why this happens:

👉 Andrea Rocca continues the series about Hotwire. Here a screenshot from only one of the many tips shared this week:

He shared about:

Read all the threads shared so far from this mega-thread

👉Rishi Pithadiya shared another tip about using ActiveSupport::Inflector:

👉Kirill Shevchenko shared how to use RSpec output matcher:

👉Kevin Newton shared a code sample showing that in Ruby almost anything can go in a rescue clause:

👉Prabin Poudel shared a code sample about how to create a Rails generator:

👉Kevin Newton shared an interesting behavior of Ruby:

👉Moses Gathuku shared a code sample showing two ways:

And the second way to achieve that is:

👉Joel Moss shared a code sample showing how they use Phlex to render a form:

👉Shiva shared a thread with Rails console tips:

You should read the thread, there are examples about sandbox mode, showing annotations (FIXE/OPTIMIZE/TODO), showing versions info and Rails stats.

👉Brad Gessler shared two commands that can be used to precompile Ruby code (bootsnap precompile and assets::precompile)

👉Shiva shared a how to hide sensitive data from Rails logs:

👉Prabin Poudel shared a good reminder to start relying less on OpenStruct:

A couple of resources mentioned in the conversation:

Lucian Ghinda suggested to use Date.define when possible:

👉 If you like this content and can afford it consider upgrade to paid

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. Check out why subscribe to paid.

If you want to expense this on your company budget I can help you write an email to your manager (write to me at help@shortruby.com)

🧰 Gems, Libraries, and Updates

🧰 DHH announced MRSK - check the Github repo and the website mrsk.dev:

🧰 Iainbeeston shared an update for Turbo frames: Read the PR: Don't break out of frames when frame missing #863

🧰Avo announced a new release. Check out the release notes:

🧰Adrian Marin shared that usage of Avo increased:

🧰Karol Bąk announced they released a new version of sidekiq-debouncer. The new version “allows to group and postpone the execution of similar jobs.”

🧰Ryan Davis announced the release of minitest v.5.18.0 which introduces assert-pattern:

🧰 Any Cable announced they released version 1.3 Read release notes

🧰 Yusuke Iwaki announced the release of version 1.31.1 of playwright-ruby-client

🧰 Maciej Mensfeld announced the release of version 2.5.0 of karafka/waterdrop: Standalone Karafka library for producing Kafka messages

🤝 Related (but not Ruby-specific)

🤝 Nate Berkopec shared about the risks of coupling web requests with third parties:

🤝Catalin Pit shared an advice that I would like to read it to myself every week:

👉Nate Berkopec shared why they think long-running jobs are like a DoS:

Maciej Mensfeld added what to do when one cannot split these jobs:

🤝Jeffrey Chupp praised using feature flags:

🤝Kent Beck shared how to pitch time investment in code health:

🤝Jeremy Smith shared a thread about getting into consultancy/freelancing:

Here are the main points, but your should read the full thread:

  • Practice mapping your skills to market needs

  • Practice packaging and differentiating your offerings

  • Practice connecting with and serving people without a transaction

  • Practice identifying and qualifying leads

  • Practice converting leads

🤝Marc Cornellà shared a linux tip about clearing typed chars in sudo prompt:

More content: 🎥 🎧 🗞

🗞 Newsletters

🗞 Ruby On Rails announced a new edition of This Week in Rails → 🎎 First edition of March curated by zzak

🗞️ Ruby Weekly published a new edition: Ruby turns 30

🗞 Ruby Radar published a new edition Ruby Radar #92 - Suddenly I Want to Make a Rails Course

🗞️ Ruby LibHunt published a new edition of the Awesome Ruby Newsletter

Podcasts

🎧 Ruby For All published a new episode about Debugging Rails: Essential Tools and Where to Start🎧 Remote Ruby published a new episode about BeagleBones, mRuby, and Devise 4.9 with Hotwire support!

🎧 The Ruby on Rails Podcast published a new episode Episode 459: Blue Ridge Ruby with Jeremy Smith and Mark Locklear

Videos

Talks

📽️ Samuel Williams shared their talk about "Asynchronous Rails" - Samuel Williams (RubyConf AU 2023)

📽️ The Rubber Duck Dev Show published a new show about Failing in Public!

📽️ Jason Swett published a new episode of Code with Jason meetup about Adding tests to an existing Rails project (2023-03-02)

Screencasts

🎥 DHH published a video Introducing MRSK: “MRSK basically is Capistrano for Containers, without the need to carefully prepare servers in advance”

🎥Yaroslav Shmarov published a new episode about Ruby on Rails #115 Multitenancy, Teams and Roles without a gem

🎥 Justin Searls shared episode 2 of this series of building live an application with Rails: Searls After Dark #2 - the Root Route

🎥 Deanin published a couple of videos:

🎥 Brandon Weaver published a new episode about Ruby Learning Center - Complete Guide to Rails Performance - S6

🎥 Pete Hawkins shared on Twitter a video about Rails tip: Customise your generators

🎥 Pete Hawkins published a new video about The BEST way to build Infinite Scroll using Hotwire

Articles

What’s new

How-Tos

Deep Dives

More general

Related

🤗 Founding Members supporting ShortRuby

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

All issues