๐ป Short Ruby News - The Code Edition #41
Briefly about everything happening in Ruby world - week 18 of 2023
You can jump directly to a section:
๐ Our Community
๐ย All about Code and Ruby
๐งฐย Gems, Libraries, and Updates
๐คย Related (but not Ruby-specific)
For just a small amount of $1.5 per week (only $6.5 a month), you can become a valued paid subscriber and actively support the thriving Ruby community we all love!
๐ Our Community
Just a reminder that Friendly.rb conference launched a new sponsorship tier: Community sponsorship at only $1250:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37d74a55-a8f8-416a-b6ab-b4360f3fcef7_1926x498.png)
(disclaimer Short Ruby is a production sponsor at Friendly.rb, and I am one of the co-organizers)
๐ Adarsh announced that Ruby Central is inviting people to contribute in multiple ways. Check rubycentral.org/support
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6df4d7ea-a380-4d63-a241-78f89a5582e2_1274x712.png)
๐ Mike Dalessio shared that Shopify is still committed to investing in Ruby and Rails:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb9fae23-8f29-4a70-9cd5-f3a2cab5df9c_1278x564.png)
๐Adarsh announced that RubyCentral is re-starting the email list for community organisers:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2767b61-a4d8-4556-a72a-bc3d76b149f1_1286x458.png)
๐ William Estoque shared about the maturity of Rails framework:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd237d473-7d00-42eb-a281-ce623e5e895a_1310x546.png)
๐ Jon Yongfook shared about the tech stack they use to generate $50k MRR:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe36071d6-08cd-4fdd-b94e-66980a622bd2_1288x500.png)
๐ Blue Ridge Ruby announced details for group activities - Check out June 2023 in Asheville, NC
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff54d0408-bcd7-49f7-955b-554e2396b151_1304x632.png)
๐ Ruby On Rails announced they opened the waiting list to be notified about early bird tickets - Subscribe at Rails World 2023
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6db4196d-54fa-4c09-a4ad-8801035129be_1330x606.png)
๐ Marian D Dev asked a question that I think can be valuable for multiple people in the community:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d18b36d-7078-4532-9e69-9674283a1246_1282x492.png)
Here are some of the answers:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e9e396e-e73b-49a0-9a16-3a107d5925dc_1342x484.png)
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff572606c-4208-4e2d-acff-3f6082c541f5_1274x272.png)
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44289b8f-0138-4dc4-b21f-699ef6111d23_1292x276.png)
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3fc60b2-7789-41c2-926c-001202ac1aae_1288x490.png)
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Face274b5-68dc-4fc4-a7d2-b02436edeba2_1272x272.png)
๐ /u/gaming-scientist asked about salary level in UK:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cdb81d7-b5ca-4427-9aa3-9dab8887e771_1418x388.png)
There are around 40 comments there comparing US and UK salaries and cost of living.
๐ All about Code and Ruby
๐Postmodern shared a flow that could cause buggy behavior when using `to_s` with memoization:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bf38b82-ec34-452a-b9e8-08e8a03e5f51_1278x470.png)
๐ Joel Drapper shared a simple way to create a build factory with Ruby:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a9a49d2-da3c-457e-8e05-033882a9225f_1232x1214.png)
Joel shared more in their thread about building green_dots gem. Here is one of the code samples shared about implementing a let method like RSpec:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9616c4e5-24e2-4681-855b-dc309ed1efe6_1296x956.png)
๐Dave Copeland shared a code sample showing how to use DATA/__END__
see the gist
If you want to read more, here is the official documentation for Ruby 3.2, but you can read more details in the docs for Ruby 1.9:
๐Andreas Haller asked about the performance of using class methods or object methods:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff65503ce-f9f2-4669-a558-f65d0ae2a069_1272x374.png)
Here is a good explanation about how to approach this shared by Aaron Hebert:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fea6904a5-7ced-498a-88c2-b32166d98deb_1258x896.png)
๐Josef Strzibny shared about the performance improvements of using Ruby 3.2 YJIT in a real-world production app:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F109325d9-85e7-472c-b5de-ac4aa948eae5_1310x590.png)
๐ John Nunemaker talks about his amazement with how Active Record behaves with the specified scope:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e833584-11e6-4721-bb5e-ec30b9e583da_1240x666.png)
๐Greg Navis shared a thread about disabling specific deprecation messages:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F16add0f0-70ee-4766-bd2d-f4ea30f562eb_1322x1332.png)
๐Joรซl Quenneville asked about how many paths are present in the example they shared:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3aa0cb6c-4d56-4bfc-b697-a35c9c22a0a8_1312x838.png)
He then shared a flow chart that helps understanding the number of paths:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e518829-b165-4579-8497-1f44426cf818_1308x1178.png)
๐ Nate Berkopec shared a performance tip about using exists? in ActiveRecord:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6898f9a5-b33c-4150-a29e-889dfc8da051_1334x586.png)
๐ Jim Jones launched their new project callstacking.com
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b784f51-4226-4d68-b483-3842a62ef5a8_1420x1700.png)
๐ Matt Swanson shared a code sample showing how they implemented an ApplicationJob:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e8fcd1e-e149-4909-a310-ec2c36a1c1b9_1326x1272.png)
๐ค I imagine that if you have read this so far, you find value in this newsletter.
๐งฐ Gems, Libraries, and Updates
๐งฐ Mike Perham announced a new version v.7.1.0 of Sidekiq Read the changelog here
๐งฐ Josh Justice shared their gem shorten_rb: A simple Rails link shortener that respects privacy
๐งฐ Joel Drapper announced they are working on a new extension for literal gem: A literal Ruby gem.
๐งฐ Hasumi Hitoshi announced the release of version 3.2 for mruby/c (another implementation of mruby) Read the release notes
๐งฐ David Heinemeier Hansson announced the release of v.0.12.0 of mrsk Read the changelog
๐งฐ Juliana Dias shared a repository rubyonrails-brasil/lizarb
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe651484b-8608-46a1-850e-74419a51ce10_1326x1292.png)
๐งฐ John Wilkinson introduced a new gem called simplekiq:
Any time that you find yourself needing to string together a long chain of jobs, particularly when there are multiple stages of Sidekiq-pro batches and callbacks involved, come home instead to the simple flavor of orchestrated job flow with Simplekiq.
โฆ
Note that this gem requires you be a Sidekiq Pro paid subscriber to be able to use it,
๐งฐ Nate Hopkins announced a new version of their gem model_probe: ActiveRecord schema visualization and model organization made easy
Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:
If you consider upgrading and want more information, please read Why to subscribe to paid
๐ค Related (but not Ruby-specific)
๐ค Ernesto shared about using code coverage as a metric:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d1bd8b-72a0-47ef-b5aa-82ba324c38f4_1292x878.png)
๐ค Nate Berkopec shared another argument why to keep things simple:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee1313df-cdb7-4e64-adc9-a534c4af4cc2_1284x594.png)
๐ค Jason Swett shared what writing code means:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ede7bc-487b-4f20-b256-e54230973bcd_1302x686.png)
He later shared a summary of the replies:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5baf2b4-49b9-4597-9835-5691dfc8ef14_1290x1250.png)
๐ค Gee Paw Hill talked about passion and joy:
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff8170cd6-ca1b-4a37-9be4-bdc6b40709a0_1262x650.png)
You can read The Content Edition if you want to discover the content created in Ruby World in week 18 of 2023:
Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:
If you consider upgrading and want more information, please read Why to subscribe to paid