π» 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:
πΒ All about Code and Ruby
π§°Β Gems, Libraries, and Updates
π€Β Related (but not Ruby-specific)
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:
π Ingemar shared how to run your gem documentation server:
π 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
π€Kent Beck shared about AI:
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
π€Paul shared a piece of knowledge from Uncle Bob about naming:
π€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