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

Briefly about everything happening in Ruby world - week 19 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)

๐Ÿ’ธ For only $1.5 per week (just $6.5 a month), you can become a paid subscriber and contribute to the success of the flourishing Ruby community we all adore!

๐Ÿ‘‹ dear readersย 

I want to know your feedback about the two newsletter formats.ย 

Do you like them and find it valuable to receive two emails? Please let me know by choosing the option below:

๐Ÿ‘ Our Community

๐Ÿ‘ Friendly.rb has recently announced their first speaker for the upcoming September conference. There is an affordable Community Sponsorship

๐Ÿ‘ Blue Ridge Rubyย announced their schedule for the June conference: blueridgeruby.com/schedule

๐Ÿ‘ Nate Berkopecย shared about compensation:

๐Ÿ‘ Helvetic Rubyย shared the speakers line up for the November conference:

๐Ÿ‘ Ruby Conf Thย announced the tickets are on Sale at rubyconfth.com/tickets

๐Ÿ‘ Dave Kimuraย launched a new website gowithruby.com

๐Ÿ‘ It's always interesting to learn why others appreciate the tools we utilize on a daily basis. Go ahead and click to read the replies

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ Noel Rappinย asked about the most elegant code:

Here are some replies:

There are many more replies to Noel question. You should check them all.

Noel compiled all responses in a gist file, including some ChatGPT-generated versions. If you want to know which ones are generated by ChatGPT read this

๐Ÿ‘‰ Postmodernย shared that Ruby 3.3.0-preview1 is available to be installed with ruby-install:

๐Ÿ‘‰ Ahmedย shared a code sample from the VCard builder-parser gem they are working on:

๐Ÿ‘‰ Greg Navisย shared a thread about Rails middleware deep dive. Here is just one of the explanations shared in the thread

๐Ÿ‘‰ Igor Kapkovย shared a code sample about private vs protected methods:

๐Ÿ‘‰ Brad Gesslerย asked about the most annoying thing when working with Rails forms:

Here is a summary of the replies, but please do read them in the thread as for each one there is more context:

  • confusing naming for form_for, form_with and the likes and inconsistent naming of form helpers

  • hard to work with input masks

  • the need to list all field names twice (once again for strong parameters)

  • dynamic nested forms, adding form fields for collections

  • many-to-many checkboxes and nested attributes

  • styling for labels, hints and error messages

  • order of options for form builder methods

  • radio buttons that revel more options

๐Ÿ‘‰ Mitsuhiro Shibuyaย shared live tweets during Matz presentation at RubyKaigi. Here is one of the tweets, translated via Google:

๐Ÿ‘‰ ใ‚Šใ•ใใ‚ƒใ‚“ย shared a visual representation of Matz presentation. Here is just one of the amazing drawings they created:

๐Ÿ‘‰ Janko Marohniฤ‡ย shared a performance improvement of running systems tests with Cuprite:

๐Ÿ‘‰ David Heinemeier Hanssonย announced a new caching approach implemented for Hey.com that will probably announce at RailsWorld:

๐Ÿ‘‰ Nate Berkopecย shared a quick tip about how to improve app performance:

๐Ÿ‘‰ Maxim Gurinย shared a tip about how to check in a non-Rails codebase that activesupport is not loaded:

๐Ÿ‘‰ Matt Swansonย shared a code sample about processing webhooks:

๐Ÿ‘‰ Takashi Kokubunย sharedย a tutorial to write a Ruby JIT Check the Github repo at ruby-jit-challenge: Tutorial to write a Ruby JIT

๐Ÿ‘‰ Nate Hopkinsย shared a thread about data modeling:

๐Ÿคž I imagine that if you have read this so far, you find value in this newsletter.

๐Ÿงฐ Gems, Libraries, and Updates

๐Ÿงฐ Thomas Cannonย announced the first release of devise-passkeysย Read the changelog

๐Ÿงฐ Sharon Rosnerย announced the release of version 1.0 for polyphony: Fine-grained concurrency for Ruby

๐Ÿงฐ Mike Perhamย announced the release of Faktory version 1.7.0 Read the changelog

๐Ÿงฐ Noel Rappinย announced their new gem warning_signs: A gem for managing Ruby and Rails dependencies

๐Ÿงฐ Mike Dalessioย announced a new release v.2.21.0 of loofah Read the release notes

๐Ÿงฐ Trevor Turkย praised a the gem_updater: Update gems in your Gemfile and fetch their changelogs

๐Ÿงฐ Nate Hopkinsย announced they published a new update for model_probe: ActiveRecord schema visualization and model organization made easy

๐Ÿงฐ Oldmoeย announced a new release for litestack (gem for Ruby and Ruby on Rails that provides an all-in-one solution for web application development. It exploits the power and embeddedness of SQLite to include a full-fledged SQL database, a fast cache and a robust job queue all in a single package)

๐Ÿงฐ Avoย announced a new release for Avo version 2.32. Read the release notes

๐Ÿงฐ Stanislav (Stas) Katkovย shared a docker image optimized for rails ledermann/docker-rails-base: Optimized Docker base images for Rails applications

๐Ÿงฐ Jeremy Evansย announced the release of version 3.68.0 of Roda Read the changelog

๐Ÿงฐ Nate Berkopecย shared a PR implemented by Jean Boussier about Make Active Record's query cache an LRU by casperisfine

Jean Boussierย added:

๐Ÿงฐ Juan Pablo Balariniย sharedย that their PR that adds picture_tag helper was merged to Rails main:

๐Ÿงฐ Bozhidar Batsovย announced the release of version 1.51 of RuboCopย Read the release notes

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)

๐Ÿค Nate Berkopecย shared about the need to implement Web Application Firewall:

๐Ÿค Thiago Massaย shared a thread proposing to reconsider naming tech debt:

๐Ÿค Marvin Von Hagenย shared the prompt used by Github Copilot Chat:

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

All issues