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.