Short Ruby News - Edition #45
Discover the world of Ruby in this comprehensive newsletter covering week 22 of 2023. Find code samples, community updates, gems, resources, and thought-provoking discussions.
You can jump directly to a section:
๐ Our Community
๐ย All about Code and Ruby
๐งฐย Gems, Libraries, and Updates
๐คย Related (but not Ruby-specific)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters, books and slides)
๐ธ 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 while receiving an ad-free version of the newsletter!!
๐ Our Community
๐ Ruby Conf Th announced a new speaker for RubyConf TH 2023
๐ Helsinki Ruby announced a new conference: Oh the Humanity!
OH!2023 is a single track conference for people who are interested in helping humanity thrive by supporting the well-being, information sharing and democracy in software development and beyond.
๐ Ruby On Railsย shared about their partnership with Agency of Learningย to develop Rails World app
๐ Wnb.Rbย announced a new signup form at www.wnb-rb.dev/join-us
๐ I think it would be good to reply to these conversations. It would be great to have a wide range of reasons why learn Ruby or Rails in 2023. And if you have a personal blog, put that also on your blog. Few resources discuss why to learn Ruby and talk for people outside our language.
๐ Nick Schwadererย shared an invitation to joinย scarpe-team/scarpe: Scarpe - shoes but running on webview
๐ All about Code and Ruby
๐ชง Have you considered inviting your company to sponsor this newsletter? If you are using Ruby on Rails I think your company is a perfect fit :)
You can send the sponsorship packages info to your marketing, HR, or product management teams.
I'm happy to assist you with drafting an email. Simply send me a message at hello@shortruby.com I'll do my best to draft an email for you to send inside your organization.
๐ Tom Stuart shared a problem they encountered while trying to configure --backtrace-limit
via RUBYOPT
Chris Zetter shared that this is not possible with RUBYOPT:
๐ Rob Yurkowski shared a code sample about using `%r()` and `%r{}`:
๐ Iย shared they will start a series of threads about code formatters. This week is about rufo. Here are two of my tweets, but I invite you to read the entire thread:
๐ Rob Whittaker asked a question about how Rails should handle an invalid submission in a dropdown form with scoped values based on the user's role:
Here are two replies, but you should read them all to have the context:
๐Alexandre Ruban shared about itself method in Ruby:
๐ Ruby Cademy shared about endless method syntax:
๐ Xavier Noriaย shared about loading schema when setting up a project instead of running migrations:
๐ Maciej Mensfeldย shared they mitigated an attack on RubyGems before being able to do any harm:
๐ Chris Oliverย shared about Rails 7 Active Record excluding method:
๐ Kevin Newtonย shared about regular expression options in Ruby:
๐ Jess Brownย shared about a possible bug with Date in Ruby:
๐ Matt Swansonย asked about how to limit job running on different accounts:
Here are some of the replies:
For an in-depth discussion about job fairness you should read this document by Vladimir Dementyev
๐ Ruby Cademyย shared a tip about using install_if in Gemfile:
๐Andrew Hodsonย shared that Rails 7.1 has support for async_pluck
๐ Kevin Newtonย shared the addition of a new instruction, opt_newarray_send, to the YARV instruction set:
๐ Matt Swansonย shared a code sample showing how to implement with_retries:
๐ Adam Riceย asked a question about performance query:
Here are some proposed solutions:
๐ Josef Strzibnyย shared a code sample showing how to tell ActiveRecord which index to use:
๐ Ruby Cademyย shared a code sample showing object-to-proc technique:
๐ค I imagine that if you have read this so far, you find value in this newsletter.
๐งฐ Gems, Libraries, and Updates
๐งฐ Mike Dalessio announced that Update Action View to use sanitizers based on HTML5 parsing is merged to Rails 7.1
๐งฐ Jamie Tanna announced the launch of `openapi-sorbet`, a command-line tool for generating Sorbet types from OpenAPI. Link to repository for schema-sorbet:
๐งฐ Ronin Rb announced the launch of ronin-exploits: A Ruby micro-framework for writing and running exploits
๐งฐ Camilo announced the version 1.29.0 of standard
๐งฐ Nate Berkopecย announced the version 6.3.0 ofย Mugi No Toki Itaru ยท puma/puma
๐งฐ Lรกzaro Nixonย shared a PR merged to Rails that willย Fix polymorphic association subquery
๐งฐ Jeremy Evansย announced the release of version 5.69.0 of sequel. Read the release notes
๐งฐ Lรกzaro Nixonย announced a new PR merged to authentication-zeroย about Add multi tenant artifacts
๐งฐ Bozhidar Batsovย announced a release of version 1.52 of rubocopย Read the release notes
๐งฐ Jason Mellerย announced a PR was merged to Rails aboutย Pass params to url_for that ONLY get used for named segments; otherwise discard them
๐งฐ Michael Buckbeeย sharedย a new gem alxlion/eyeloupe: The elegant Rails debug assistant
๐งฐ Mari Imaizumiย announced the release of version 1.7.0 of irbย Read the release notes
๐งฐ Jeremy Hinegardner posted a discussion on Puma about Recommended way to implement plugin configuration
๐งฐ Maciej Mensfeld announced a new release of Karakfa and published an article about all the changes in Karafka 2.1.0:
๐งฐ ViewComponent announced the release of version 3.1.0. 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 while receiving an ad-free version:
If you consider upgrading and want more information, please read Why to subscribe to paid
๐ค Related (but not Ruby-specific)
๐ค Ryan Batesย shared a tip about git checkout and going back to the previous branch:
๐ค Dr. Milan Milanoviฤย shared some stats about how long software engineers stay at a job:
๐ค Reaperย sharedย a tip about VSCode:
๐ Nate Hopkinsย shared about how performance is related to doing fewer things:
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ
๐ Books & Slides
๐๏ธ Xavier Noriaย shared their slides from RailsSaas in Athens
๐ Sandi Metzย sharedย that 99 Bottles โ Sandi Metz has a 40% off discount until 13th of June.
๐ Newsletters
๐๏ธ Greg Molnarย published a new edition of Rails Tricks - Modify database schema with migrations - Rails Tricks Issue 9
๐๏ธ Ruby On Railsย published a new edition of This Week in Rails -ย HTML5 sanitizer, path_params and more
๐๏ธย Ruby Libhunt published a new edition of Awesome Ruby Newsletter - Issue 367
๐๏ธ Ruby Radar published a new edition about Your Sunday Scoop of Ruby
๐๏ธย Ruby Weeklyย published a new edition:ย Euruko's back for 2023
๐ง Podcasts
๐ง Ernesto Tagwerker shared a new episode of IndieRails | Ernesto Tagwerker - Building an agency & productized services
๐ง Tightly Coupled Book Clubย shared a new episode aboutย the Tightly Coupled Book Club - Active Record Migrations (chapters 1-4)
๐ง The Build And Learn Podcastย published an episode aboutย Build and Learn | Chris Oliver: Building a Life (and Businesses) on Rails
๐ง The Ruby On Rails Podcastย published a new episode about All I Wanted Was An Environment Variable (thoughtbot) with Victoria Guido and Joe Ferris
๐ฝ๏ธ ๐ฅ Videos
Talks
๐ฝ๏ธ Justin Searls shared their RailsConf 2023 talk about Let's Standardize Rails!
๐ฝ๏ธ Jason Swett shared an older episode from Code With Jason Meetup in Europe about How to get freelancing clients
๐ฝ๏ธ Joe Masilottiย published a video aboutย Turbo Native in 15 minutes
Screencasts
๐ฅ Yaroslav Shmarovย published a new video aboutย Ruby on Rails #134 Date Range Picker
๐ฅ Hanami Mastery published a new episode about Contact Forms with Hanami View
๐ฅ Alexandre Ruban published a new video about Learn to create internal gems in your Rails applications by rebuilding Pundit in 30 lines of code
๐ฅ Chris Oliverย announced they published a new video in GoRails Learning Path aboutย Build a Password Manager with Rails 7 Series
๐ฅ Matt Swansonย published a video about Walking through some code where hiding the implementation details is Not Good Actually
๐ฅ Dean De Hartย published a new video aboutย Active Record Encryption in Ruby on Rails 7
๐ฅ GoRails published a video about The difference between Link_to vs Button_to in Ruby on Rails
๐ฅ Drifting Rubyย published a new episodeย Episode 404 - Page Not Found
โ๐พ Articles
Whatโs new
Andy Croll published a new article about Really, Really, Really Donโt Interpolate Strings into Active Record Methods
Carla Urrea Stabileย published a new article aboutย What's the Right Authorization Model for My Application?
Jorge Manrubiaย published an article aboutย A Friday email incident
Nathan Willsonย published a new article aboutย RubyKaigi 2023: Matsumoto
Konnor Rogersย publishedย a new article aboutย button_to vs link_to and the pitfalls of data-turbo-method
Josef Strzibny published a new article about I am building a Ruby on Rails SaaS template
How-Tos
Matt Brictson published a new article about Advanced techniques for calling HTTP APIs inย Ruby
Keshav Biswa published a new article about Shaping Rails to Your Needs, Customizing Rails Generators using Thor Templates
Gowsik Vivekanandan published an article about Extract Sample Rate of an Audio File with Audio Analyzer in Rails 7.1
Dr Nic Williamsย published an article aboutย 7 steps to setting up Stripe payments with Jumpstart Pro
Aestimo Kirina published a new article about How to Use Sinatra to Build a Ruby Application
Akshay Khot published an article about Generating Secure Tokens on Your ActiveRecord Models
Janko Marohniฤย published a new article about Upgrading from Selenium to Cuprite
Akshay Khot published an article about How to Create a Form with Multiple Submit Buttons to Different URL Endpoints
Okarsonoย publishedย a new article aboutย Capturing browser console logs on automated test
Deep Dives
Ben Sheldon published a new article about Rebuilding Concurrent Ruby: ScheduledTask, Event, and TimerSet
Benoit shared an article from Gitlab about Efficient `IN` operator queries
Related
Josef Strzibnyย sharedย a resource about Don't Do This - PostgreSQL wiki
Shami (Jose Miguel) Tomita Rodriguez published an article about Git Rebase/Squashing Commits
Lucas Barretย published an article aboutย Let's MERGE INTO Postgres !
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.