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

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 [email protected])

🧰 Gems, Libraries, and Updates

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

🧰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

🀝 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 LibHunt published a new edition of the Awesome Ruby Newsletter

Podcasts

Videos

Talks

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

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

πŸŽ₯ Pete Hawkins shared on Twitter a video about Rails tip: Customise your generators

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

Reply

or to participate.