π» Short Ruby News - The Code Edition #38
Briefly about everything happening in Ruby world - week 15 of 2023
You can jump directly to a section:
πΒ Our Community
πΒ All about Code and Ruby
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).
π Our Community
π PostmodernΒ shared about why Ruby seems to be a good language for writing security tools:

π Ruby On RailsΒ announced they are supporting juniors apply at Attention junior devs: Want to build the Rails World website?

π Jason SwettΒ announced that Code with Jason Meetups are back now with also European timezones Join here at codewithjason.com/meetup

π Unusual-Hat-1617 asked about how to start with DragonRuby

Here is one of the top answers:

π ashawareb asked about the job market:

The replies are split between people receiving many offers and people receiving less.
π igor_kasyanchuk shared a collection of Ruby gems curated at https://opensource-heroes.com/awesome/ruby

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
π AvoΒ announced they are launching Avo v3 beta signup

You can checkout the features that might be part of Avo 3 by reading the Roadmap
π Irving ReidΒ shared a code sample about how to make it work:

Sharon RosnerΒ suggested to use binding.local_variable_get and here is how the code might look like:

π Ludovic De LunaΒ asked about what will come in Ruby 3.3

Here are some of the replies to this question:
Noel RappinΒ shared the link to NEWS - Documentation for Ruby 3.3
Noah GibbsΒ shared a summary of the biggest changes we know so far:

π Dave CopelandΒ shared they are working on a new short book and that triggered a discussion about OOP:

Here are some replies from that discussion:



πBrandon WeaveΒ shared a code sample showing how to configure Capybara for tests: see the gist


πNaofumi KagamΒ shared about how to think about SRP in context of Ruby mixins (you can also read this conversation on StackExchange β Relationship between inheritance and single responsibility principle)


And proposed a solution about this:

π Nate BerkopecΒ asked about features or improvements for rack-mini-profiler

And among the many replies:


πSimon ChiuΒ shared a tip for precompiling assets without RAILS_MASTER_KEY:


Here are some recommended resources from the thread:
π Jess BrownΒ shared a code sample showing how to compare pairs:

πMartin SpickermannΒ shared a code sample showing how to make methods from mixins available both as class and instance methods:

πNate BerkopecΒ shared about the performance of ActiveRecord:

πMatt SwansonΒ shared a code sample showing a technique to use transaction for creating temporary data for mailer previews:

He mentions that the solution was inspired by a StackOverflow question
πMoses GathukuΒ shared a tip about how to use non-alphanumeric chars for percent strings:

Checkout the documentation about Percent Literals in Ruby 3.2
π Matt SwansonΒ shared a real code sample showing a workflow implemented in a controller:


π Greg NavisΒ shared a thread about Ruby support for grepping through a collection of items, based on the === method

πBrad GesslerΒ shared a code sample showing how Rails can render a component with Phlex:


πAlexandre RubanΒ shared thread explaining how security works when broadcasting pieces of HTML with turbo-rails:

π u/dc366 asked about how does the production environment looks like:

The replies include solutions from VPS, Heroku, Capistrano to AWS and GCP solutions.
π honeyryderchuckΒ shared their perspective about types in Ruby in a comment on /r/ruby:

The discussion on /r/ruby is big and touches multiple angles and if you are interested you should read the discussion on the same topic but on /r/programming
π€ I imagine that if you have read so far, you find value in this newsletter.
π§° Gems, Libraries, and Updates
π§° Brooke KuhlmannΒ announced a new release of v.0.8.0 of Cogger (a customizable logger)
π§° Karl Oscar WeberΒ shared an update about camping (you can read more about Karlβs plans for camping here):

π§° Bozhidar BatsoΒ announced that Rubocop passed over 313 million downloads and announced the Release RuboCop 1.50 Β· rubocop/rubocop


π§° Vinicius StockΒ announced a new release of ruby-lsp v.0.4.4 Read the release notes

π§° LΓ‘zaro NixonΒ announced they added WebAuthn to authentication-zero gem. Read the commit

π§° Nate BerkopecΒ announced the release of v.3.1.0 for rack-mini-profiler, read the release notes

π§° Dima FatkΒ announced a new gem sidekiq-expiring-jobsΒ

π§° Jeremy EvansΒ announced a new release v.3.67.0 of roda, read the release notes

π§° Brad GesslerΒ announced a new gem inputomatic: Handy little tools to that turn boring text box inputs into wonderful things.

You can also read the blog post where he shares more about how to use this: Humane Rails Forms
π§° Julian RubischΒ announced the release of CableReady v.5.0 Read the release notes. This release introduces Updatable:

π§° Andrew KaneΒ shared that Torch.rb is now powered by LibTorch2

π§° Brad GesslerΒ shared a PR merged to Rails that is about Rewrite Asset Pipeline guide for Rails 7 by zzak

π§° Stefanni BrasilΒ announced a new release v.3.2.0 of faker gem that is now RFC 2606 compliant (RFC 2606 - Reserved Top Level DNS Names) Read release notes
π§° Sinatra announced a new release of version 3.0.6. Read the commit
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)
π€Uncle Bob MartinΒ shared about abstraction:

π€Arvid KahlΒ invited us to think about mental health:

π€David WalshΒ asked about development tools for Mac OS:

πSchwadΒ shared a gist about git_revert_dir

You can read The Content Edition if you want to discover the content created in Ruby world in week 15 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