๐ป 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
๐งฐย 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:
๐ 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)
๐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:
Ruby on Rails #119 Trello Clone. Advanced Drag and Drop Sortable Lists with Hotwire
Book: Hotwiring Rails
30 days of Hotwire tips collection of tweets
๐ 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