Short Ruby Newsletter

Share this post

๐Ÿ’ป Short Ruby News - The Code Edition #38

newsletter.shortruby.com

Discover more from Short Ruby Newsletter

A Monday summary of the articles, discussions, and news from the Ruby community
Over 4,000 subscribers
Continue reading
Sign in

๐Ÿ’ป Short Ruby News - The Code Edition #38

Briefly about everything happening in Ruby world - week 15 of 2023

Lucian Ghinda
Apr 17, 2023
1
Share this post

๐Ÿ’ป Short Ruby News - The Code Edition #38

newsletter.shortruby.com
Share

You can jump directly to a section:

๐Ÿ‘ย Our Community

๐Ÿ‘‰ย 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).

๐Ÿ‘ Our Community

๐Ÿ‘ Postmodern shared about why Ruby seems to be a good language for writing security tools:

Source: @postmodern@infosec.exchangeruby.social

๐Ÿ‘ Ruby On Rails announced they are supporting juniors apply at Attention junior devs: Want to build the Rails World website?

Source: https://rubyonrails.org/2023/4/13/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

Source: @JasonSwett

๐Ÿ‘ Unusual-Hat-1617 asked about how to start with DragonRuby

Source: /r/ruby

Here is one of the top answers:

Source: /r/ruby

๐Ÿ‘ ashawareb asked about the job market:

Source: /r/rails

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

Source: /r/rails

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.

Support the newsletter for ~1.5$/week


๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ Avo announced they are launching Avo v3 beta signup

Source: @avo_hq

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:

Source: @irvingreid@ruby.social

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

Source: @ludo@ruby.social

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:

Source: @codefolio@ruby.social

๐Ÿ‘‰ Dave Copeland shared they are working on a new short book and that triggered a discussion about OOP:

Source: @davetron5000@ruby.social

Here are some replies from that discussion:

Source: @joshsusser@ruby.social
Source: @joshsusser@ruby.social
Source: @est@ruby.social

๐Ÿ‘‰Brandon Weave shared a code sample showing how to configure Capybara for tests: see the gist

Source: @baweaver@ruby.social
Source: github.com/vhorb

๐Ÿ‘‰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)

Source: @naofumi

๐Ÿ‘‰Dilrajio asked about authorization checks with GraphQL:

Source: @dilrajio

And proposed a solution about this:

Source: @dilrajio

๐Ÿ‘‰ Nate Berkopec asked about features or improvements for rack-mini-profiler

Source: @nateberkopec

And among the many replies:

Source: @DRBragg
Source: @geetfun

๐Ÿ‘‰Simon Chiu shared a tip for precompiling assets without RAILS_MASTER_KEY:

Source: @geetfun

๐Ÿ‘‰Pratik T shared a thread about how they learned Hotwire:

Source: @CodingKrazy

Here are some recommended resources from the thread:

  • Ruby on Rails #119 Trello Clone. Advanced Drag and Drop Sortable Lists with Hotwire

  • Book: Hotwiring Rails

  • Slim Select with StimulusJS

  • 30 days of Hotwire tips collection of tweets

๐Ÿ‘‰ Jess Brown shared a code sample showing how to compare pairs:

Source: @bjessbrown

๐Ÿ‘‰Martin Spickermann shared a code sample showing how to make methods from mixins available both as class and instance methods:

Source: @spickermann

๐Ÿ‘‰Nate Berkopec shared about the performance of ActiveRecord:

Source: @nateberkopec

๐Ÿ‘‰Matt Swanson shared a code sample showing a technique to use transaction for creating temporary data for mailer previews:

Source: @_swanson

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:

Source: @Gathukumose

Checkout the documentation about Percent Literals in Ruby 3.2

๐Ÿ‘‰ Matt Swanson shared a real code sample showing a workflow implemented in a controller:

Source: @_swanson
Source: @_swanson

๐Ÿ‘‰ Greg Navis shared a thread about Ruby support for grepping through a collection of items, based on the === method

Source: @gregnavis

๐Ÿ‘‰Brad Gessler shared a code sample showing how Rails can render a component with Phlex:

Source: @bradgessler
Source: @bradgessler

๐Ÿ‘‰Alexandre Ruban shared thread explaining how security works when broadcasting pieces of HTML with turbo-rails:

Source: @alexandre_ruban

๐Ÿ‘‰ u/dc366 asked about how does the production environment looks like:

Source: /r/rails

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:

Source: /u/honeyryderchuck

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.

Short Ruby Newsletter is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.


๐Ÿงฐ 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):

Source: @Kowfm@ruby.social

๐Ÿงฐ Bozhidar Batso announced that Rubocop passed over 313 million downloads and announced the Release RuboCop 1.50 ยท rubocop/rubocop

Source: @bbatsov
Source: https://github.com/rubocop/rubocop/releases/tag/v1.50.0

๐Ÿงฐ Vinicius Stock announced a new release of ruby-lsp v.0.4.4 Read the release notes

Source: @vinistock

๐Ÿงฐ Lรกzaro Nixon announced they added WebAuthn to authentication-zero gem. Read the commit

Source: @lazaronixon

๐Ÿงฐ Nate Berkopec announced the release of v.3.1.0 for rack-mini-profiler, read the release notes

Source: https://github.com/MiniProfiler/rack-mini-profiler/releases/tag/v3.1.0

๐Ÿงฐ 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

Source: https://github.com/jeremyevans/roda/discussions/319

๐Ÿงฐ Brad Gessler announced a new gem inputomatic: Handy little tools to that turn boring text box inputs into wonderful things.

Source: https://github.com/rocketshipio/inputomatic

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:

Source: https://cableready.stimulusreflex.com/guide/updatable.html

๐Ÿงฐ Andrew Kane shared that Torch.rb is now powered by LibTorch2

Source: @andrewkane

๐Ÿงฐ Brad Gessler shared a PR merged to Rails that is about Rewrite Asset Pipeline guide for Rails 7 by zzak

Source: https://github.com/rails/rails/pull/47899

๐Ÿงฐ 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:

Support the newsletter for ~1.5$/week

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:

Source: @unclebobmartin

๐ŸคArvid Kahl invited us to think about mental health:

Source: @arvidkahl

๐ŸคDavid Walsh asked about development tools for Mac OS:

Source: @davidwalshblog

๐Ÿ‘‰Schwad shared a gist about git_revert_dir

Source: https://gist.github.com/Schwad

You can read The Content Edition if you want to discover the content created in Ruby world in week 15 of 2023:

Read the content edition


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:

Support the newsletter for ~1.5$/week

If you consider upgrading and want more information, please read Why to subscribe to paid

1
Share this post

๐Ÿ’ป Short Ruby News - The Code Edition #38

newsletter.shortruby.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

ยฉ 2023 Lucian Ghinda
Privacy โˆ™ Terms โˆ™ Collection notice
Start WritingGet the app
Substack is the home for great writing