- Short Ruby Newsletter
- Posts
- ๐ป Short Ruby News - The Code Edition #39
๐ป Short Ruby News - The Code Edition #39
Briefly about everything happening in Ruby world - week 16 of 2023
You can jump directly to a section:
The content section that includes videos, talks, screencasts, podcasts, newsletters, and articles can now be found in The Content Edition (and sent in a separate email).
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!
By contributing, you'll be playing a pivotal role in fostering growth and maintaining the high standards of ShortRuby for everyone to enjoy.
๐ All about Code and Ruby
๐Nate Hopkins shared a sample code and a gist about ActiveJob as Service Worker
There is a good discussion in the replies to Nate proposal. I picked here a couple of the replies:
๐ Okura Masafumi shared a gist about Tell me if this module is included by the same class more than once
๐ Greg Navis shared a thread about Enumerable#all? Here is one of the posts shared:
๐Nate Berkopec shared a tip about using preload and eager_load
๐Postmodern asked about suggestions to split a hash into a value for a key and the rest of the hash:
There are some good replies there, here are three of the proposed solutions:
Jesse Cooke proposed the following solution based on the article Everything You Need to Know About Destructuring in Ruby 3 suggested by Rachael Ludwick
Stephann V proposed the following direct solution:
๐Dr Nic Williams asked for recommendations for building an admin section:
Here are some recommendations:
๐ Greg Navis shared a thread about counting objects with Enumerable. Here is one of the tips shared in Greg thread:
๐Brad Gessler shared an excellent comparison of components and partials in a thread where he presented an article about Component driven development on Rails with Phlex
๐ u/A_little_rose/ presented a dilemma about how to work with class instance variables
You should read the proposed solution and the discussions on /r/ruby about this. Here is one of the answers:
๐ Greg Navis shared a thread about extracting file name, directory name and extension from a file path:
๐Andrew Mason asked about recommended gems of all time:
Andrew announced they would write an article and share it on RubyForAll thus, I will not compile here the list of recommended gems from the replies.
๐Maciej Mensfeld announced support for iterating through Kafka topics with Iterator API - Karafka framework documentation
๐Vincent Rolea shared a short thread about how simple it is to discard a modal with Turbo:
๐Andrew Mason asked a question about productivity hacks:
Here are some suggestions:
Listening to music (genre suggested rap, dubstep
Using an app like Centerer app
๐Matt Swanson shared a piece of code showing how to use the ~* postgres operator:
๐Robby Russell asked about recommendations for site generators that build pages for a collection of records from RESTful API:
Here are some recommendations:
sitepress.cc - that can be embedded in Rails
bridgetownrb.com - that has this page about HTTP Requests and the Resource Builder
there is an entire list of Static Site Generators at Awesome Ruby repo
๐ u/Plastic_Magician_420 shared the following answer to a question if Ruby is slow:
๐ค I imagine that if you have read so far, you find value in this newsletter.
๐งฐ Gems, Libraries, and Updates
๐งฐ Avo announced a new release v2.30.2 Read the changelog
๐งฐ Joel Drapper announced they released version 1.0 of phlex-rails. Read the changelog
๐งฐKarl Oscar Weber announced the release of version 3.0 (and small updates v.3.0.1 and v.3.0.2) for Camping. Read the release notes for v3.0
๐งฐ Xavier Noria announced a new release of zeitwerk: Efficient and thread-safe code loader for Ruby. Read the commit here
๐งฐ Justin Searls announced the release of version 1.28.0 of standardrb/standard gem:
๐งฐ Marco Roth announced a new releasee of phlexing: Release v0.5.0 ยท marcoroth/phlexing
๐งฐ Koichi Ito announced the release of v0.6.0 for tmm1/test-queue (a parallel test runner specifically optimized for CI environments)
๐งฐ Ronin Rb announced the plan for Phase 2 | Ronin
๐งฐ Rails Links shared a repo from thoughbot containing thoughtbot/hotwire-example-template: A collection of branches that transmit HTML over the wire
๐งฐ Ruby On Mac shared that their software can now help to install Ruby < 2.5.9 on Apple Silicon
๐งฐ Eric Berry shared a new gem they discovered called Boxcars AI:
๐งฐNejdet Kadir announced a new gem nejdetkadir/safe_poller: SafePoller is a Ruby gem that provides a safe and reliable way to perform periodic polling operations in multi-threaded environments
๐งฐ Igor Kasyanchuk published a new gem called lazy_value about:
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)
๐คKevin Murphy shared a new feature of headless chrome Read more here
You might want to consider reading the two articles Kent wrote as a follow-up to this tweet: 90% of My Skills Are Now Worth $0 and More What, Less How
๐ค Tobias Petry.Sql shared a gist with over 1000+ PostgreSQL EXTENSIONs
๐คGustavo Valenzuela shared a bash code for opening a remote repo with branch param from terminal:
You can read The Content Edition if you want to discover the content created in Ruby World in week 16 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
Reply