πŸ’» 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

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:

πŸ‘ 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:

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

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

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:

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

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:

πŸ‘‰ 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

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

Reply

or to participate.