Short Ruby Newsletter

Share this post

Short Ruby News - Edition #68

newsletter.shortruby.com

Discover more from Short Ruby Newsletter

A Monday summary of the articles, discussions, and news from the Ruby community
Over 4,000 subscribers
Continue reading
Sign in

Short Ruby News - Edition #68

Discover the world of Ruby in this comprehensive newsletter covering week 46 of 2023. Find code samples, community updates, gems, resources, and thought-provoking discussions.

Lucian Ghinda (from ShortRuby)
Nov 20, 2023
1
Share this post

Short Ruby News - Edition #68

newsletter.shortruby.com
Share

You can jump directly to a section:

🚀 New Products & 📅 Events

👉 All about Code and Ruby

🧰 Gems, Libraries, and Updates

🤝 Related (but not Ruby-specific)

More content: 📚 🗞 🎧 🎥 ✍🏾 (articles, podcasts, videos, newsletters)

I will send a special edition newsletter with more Black Friday deals (like the ones below) for Ruby developers on Wednesday or Thursday. 

If you have a product built with Ruby or a product/service/book/course for Ruby developers and offer a discount, please write to me at deals@shortruby.com by Tuesday morning to include it in the special edition.  

[Sponsors ⬇] (with affiliate links - use them to support this newsletter)

Business Class kit is a Rails SaaS template integrated with Paddle and offers a lot of already built-in functionality out of the box. Buy at 60% discount (affiliate link)

Business Class kit (affiliate link)

Buy with 60% discount


Say goodbye to Ruby installation issues on your Mac with Ruby on Mac. You will always be less than 15 minutes away from a clean Ruby dev setup. Use discount codes at RubyOnMac.dev (affiliate link)

RubyOnMac.dev (affiliate link)

Buy Ruby on Mac using discount codes


🚀 New Products

🚀 Ahmed Nadar launched RapidRails UI Components for Ruby on Rails

Source: @ahmednadar (read on nitter)

🚀  Ryan Caldwell launched a new Rails SaaS Template

Source: @RyanCaldwelll (read on nitter)

📅 Events

📅 Visuality announced the Ruby Warsaw Community Conference - 02.02.2024 - Winter Edition

Source: @visualitypl (read on nitter)

📅 Thoughtbot announced that The Ruby devroom is back at FOSDEM. You can submit a talk at fosdem.rubybelgium.be:

Source: fosdem.rubybelgium.be

📅 Sergy Sergyenko announced a new Ruby conference:

Source: @sergyenko (read on nitter)

👉 All about Code and Ruby

👉 Stan Lo shared about the recent progress of IRB:

Source: @st0012@ruby.social

👉 John Nunemaker shared about organizing tests so that they can be removed easily when the feature is deleted:

Source: @jnunemaker (read on nitter)

👉 Helio Cola shared about the memory performance on Fly.io running on jemalloc:

Source: @hacrods@ruby.social

👉Prem Sichanugrist shared a code sample simulating an Enumerable#pluck that would go through methods:

Source: @sikachu@ruby.social

👉 Yaroslav Shmarov shared a code sample about creating a component for Rails 7:

Source: @yarotheslav (read on nitter)

👉 Bhumi shared about Ruby tap method:

Source: @bhumi1102 (read on nitter)

👉 Lucas Barret asked about Ruby classes:

Source: @yet_anotherDev (read on nitter)

Here are some replies about this topic:

Source: @fxn (read on nitter)
Source: @fxn (read on nitter)
Source: @fxn (read on nitter)
Source: @jessevdp_ (read on nitter)

Lucas asked another good question about:

Source: @yet_anotherDev (read on nitter)

and Jean Boussier shared Implement MatcherDelegator using the BlankSlate pattern by casperisfine · Pull Request #1434 · rspec/rspec-expectations

Source: @_byroot (read on nitter)

👉 Pragmatic Programmers shared a photo from the beginning of RubyConf in 2001:

Source: @pragprog (read on nitter)

👉 Brian Armstrong shared about the Rails documentary:

Source: @brian_armstrong (read on nitter)

👉 Xavier Noria announced they are working on a book:

Source: @fxn (read on nitter)

👉 Willem Spruijt shared about the decision to use Ruby:

Source: @wspruijt (read on nitter)

👉 John Nunemaker shared about ActiveSupport Gzip:

Source: @jnunemaker (read on nitter)

Don’t forget to check the two sponsors of this edition: 

- Business Class kit is a Rails SaaS template integrated with Paddle and offers a lot of built-in functionality to get started. Buy with 60% discount (affiliate link)

- Ruby on Mac - Get a clean Ruby dev setup in just 15 mins. Use discount codes (GETUNSTUCK50 or GETUNSTUCK40) at RubyOnMac.dev (affiliate link)
You can get an ad-free experience for only $7.5/month and help us maintain our quality for everyone.

Support the newsletter for 1.8$/week


👉 Chris Wanstrath shared that Ruby on Rails was a big part of Github early success:

Source: @defunkt (read on nitter)

👉 Georgie Boy shared a code sample showing PhlexUI::Base:

Source: @george_kettle (read on nitter)

👉 Sebastian Wilgosz shared a diagram about Hanami:

Source: @sebwilgosz (read on nitter)

👉 Naofumi Kagami 加々美直史 shared about Ruby community:

Source: @naofumi (read on nitter)

👉 Ruby For Good shared why they choose Ruby and shared the A peak behind the curtain article from the creator of Lectronz:

Source: @RubyforGood (read on nitter)

👉 David Heinemeier Hansson shared the discussion on HackerNews (currently at 239 comments) about Ruby on Rails: The Documentary [video]

Source: @dhh (read on nitter)

👉 Josef Strzibny asked about running a background job while waiting for a sync result from the job:

Source: @strzibnyj (read on nitter)

Here are some of the replies:

Source: @strzibnyj (read on nitter)
Source: @tobias_petry (read on nitter)
Source: @mhenrixon (read on nitter)
Source: @techsutra (read on nitter)

👉 Naofumi Kagami 加々美直史 shared about logic in controller and views:

Source: @naofumi (read on nitter)

👉 Joe Masilotti shared about how small the iOS quick start guide will be after Turbo Navigator will be merged:

Source: @joemasilotti (read on nitter)

👉 Dhaval Singh shared about the difference between .to_i and .to_int in Ruby:

Source: @Dhavalsingh7 (read on nitter)

👉 Matt Swanson shared about using separate Redis databases:

Source: @_swanson (read on nitter)

👉 Rob Zolkos asked about the magic comment for frozen string literals:

Source: @robzolkos (read on nitter)

Here are some of the replies:

Source: @NateMatykiewicz (read on nitter) link to Use frozen string literals by technicalpickles
Source: @5katkov (read on nitter)
Source: @samsaffron (read on nitter) - link to read Feature #11473: Immutable String literal in Ruby 3

And there were a couple of resources recommended:

  • Ruby's Frozen String Comment: Yagni

  • Freezolite: Automatically Add Frozen String Literals To Selected Files At Compile Time

  • Search in Rails codebase

  • Feature #11473 - Immutable String Literal in Ruby 3

  • Use frozen string literals by technicalpickles · Pull Request #144 · ruby/net-http

👉 Rob Lacey shared about a possible bug in Rails 6.1 date_select:

Source: @braindeaf (read on nitter)

👉 Ryan Bates shared about using class methods and extracting POROs through refactoring:

Source: @rbates (read on nitter)

👉 Stanislav Katkov asked about which gem documentation we are reading most often:

Source: @5katkov (read on nitter)

The replies so far mention: rspec, sidekiq, devise, nokogiri, view_component, shoulda, capybara, bullet_train, jbuilder, jbuilder-schema, graphql-ruby, syntax_tree, dry-rb, warden, pundit, ransack.

👉 Naofumi Kagami 加々美直史 shared about how they see Rails controllers:

Source: @naofumi (read on nitter)

👉 Ufuk Kayserilioglu shared they are part of the new RubyCentral board

Source: @paracycle (read on nitter)

👉 Nate Hopkins shared why it is important to master ActiveRecord:

Source: @hopsoft (read on nitter)

👉 Mika Henriksson asked about how to solve a Rails error:

Source: @mhenrixon (read on nitter)

Here are two solutions:

Source: @mhenrixon (read on nitter)
Source: @bsilva96 (read on nitter)

👉 I shared a thread where I reviewed an open-source web app (read it on nitter or ruby.social):

Source: @lucianghinda (read on nitter) or @lucian@ruby.social

👉 u/stevecondy123 asked on /r/rails about Rubymine and VScode:

Source: https://i.reddit.com/17z9dcu

Please consider becoming a paid subscriber to support this newsletter for just $1.8/week ($7.5/month), and you will receive an ad-free version. Your contribution aids growth and maintains the quality of ShortRuby for everybody.

Support the newsletter for 1.8$/week


🧰 Gems, Libraries, Tools and Updates

🧰 Nate Hopkins announced a new release for universalid: URL-Safe String Serialization for any Ruby Object

Source: @hopsoft@ruby.social

🆕 🧰 Mike Perham announced a new native UI for Sidekiq Sidekiq desktop app

Source: @getajobmike@ruby.social

🧰 Jeremy Evans announced a new version of Roda 3.74.0 Released · jeremyevans roda · Discussion #339

Source: https://github.com/jeremyevans/roda/discussions/339

🧰 Koichi Ito shared that Rubocop VSCode extension is available on Open-VSX Registry:

Source: @koic (read on nitter)

🧰 Alex Rudall announced that ruby-openai now supports the new Text to Speech API:

Source: https://github.com/alexrudall/ruby-openai/tree/v6.2.0#speech

🆕 🧰 Bijan Rahnema announced a new gem mail-autoconfig-revived - Ruby library to detect and parse Mozilla Thunderbird Autoconfiguration files

Source: @BijanRahnema (read on nitter)

🆕 🧰 Mark Godwin announced a new gem mgodwin/rails_observatory: Metrics Tracking for Rails Apps

Source: https://github.com/mgodwin/rails_observatory

🧰 Joel Moss announced a new release for proscenium

Source: https://github.com/joelmoss/proscenium/releases/tag/v0.14.0

🧰 Yuichiro Kaneko announced a new release for Release v0.5.10 · ruby/lrama

Source: @spikeolaf (read on nitter)

🆕 🧰 Enrico announced a new gem plucker - Pluck database records in structs

Source: https://github.com/pioz/plucker

🧰 Guillaume shared GitHub - kamal-ansible-manager: Manage and optimize your servers automatically for Kamal with Ansible

Source: https://github.com/guillaumebriday/kamal-ansible-manager

🤝 Related (but not Ruby-specific)

🤝 Bart Veneman shared about using form.requestSubmit() to trigger validation:

Source: @bartveneman (read on nitter)

🤝 Kelsey Hightower shared about senior engineers:

Source: @kelseyhightower (read on nitter)

🤝 Ryan Bates shared about the advantages of verbosity:

Source: @rbates (read on nitter)

🤝 Naofumi Kagami 加々美直史 shared 

Source: @naofumi (read on nitter)

🤝 Adam Wathan shared about using forced-colors to test the UI:

Source: @adamwathan (read on nitter)

🤝 William Kennedy shared about misconceptions about development and marketing:

Source: @_williamkennedy (read on nitter)

🤝 Ryan Bates shared about different types of refactoring:

Source: @rbates (read on nitter)

🤝 Dave Paola shared advice from Simmon Li:

Source: @dpaola2 (read on nitter)

More content: 📚 🗞 🎧 🎥 ✍🏾

🗞 Newsletters

🗞️ Ruby Weekly published a new edition about IRB adds type-based completions

🗞  Greg Molnar published a new edition about Open redirect vulnerabilites in Rails apps

🗞 Aurelie Verrot published a new edition about Newsletter WoR #53: Angular glow up, some bugs, a button that does nothing, being amazed...

🗞 Ruby Libhunt published a new edition about Awesome Ruby Newsletter - Issue 391, Nov 16, 2023

🗞 Ruby On Rails published a new edition about Action Mailer bug report template, Active Storage fixes and more!

🗞 Sajjad Umar published a new edition about Ruby on Rails - November 2023

🗞 Harrison Broadbent published a new edition about The RailsNotes Newsletter ISSUE #19

🗞 Ruby Radar published a new edition about Post-Conference Hangover Cure

🎧 Podcasts

🎧 Yaroslav Shmarov and Adrian Marin published a new podcast about Friendly Show | Andrea Rocca, Hotwire Cookbook, Rails UI, and flying foxes

🎧 Indie Rails published a new podcast about John Nunemaker - Rolling with Flipper

🎧 Lucas Barret published a new podcast about GemRuby Show: Xavier Noria, Zeitwerk

🎧 Matt Swanson published a new episode about YAGNI | Testing w/ Josh Pigford

🎧 The Bike Shed published a new podcast about The Bike Shed: 406: Working Solo

🎧 Ruby For All published a new podcast about Ruby Mastery and Community Love with Ufuk Kayserilioglu

🎧 Maintainable Software Podcast published a new podcast about Oliver Drotbohm - Modulithic Applications

🎧 Software Sessions published a new episode about David Copeland On Medium Sized Decisions (Ruby Conf 2023)

🎧 Remote Ruby published a new episode about Rails World 2023 Recap &Amp; Rails Foundation Plans With Amanda Perino → “

🎙️ Talks, Slides and Conference Talks

🎙️ Jeremy Evans shared their slides for the talk about The Second Oldest Bug

🎙️ 大倉雅史(Okura Masafumi) shared their slides about Developing a Vim plugin with Ruby

🎙️ Andy Obtiva published a new article about Slides & Code for RubyConf 2023 Workshop "How To Build Desktop Applications in Ruby"

📽️ 🎥 Videos

Screencasts

🎥 Yaroslav Shmarov published a new video about Advanced Hotwire modals and about Custom Turbo Streams. How to redirect from a form that is inside a turbo frame?

🎥 Dean DeHart published a new video about Intro To Object Oriented Programming In Ruby For Beginners 17 and about Reading And Writing To Files In Ruby For Beginners 16

🎥 Scott Yang published a new video about Rails World Amsterdam 2023

🎥 Kelvin Omereshone published a video about High Performance PostgreSQL For Rails Applications With Andrew Atkinson

🎥 Jason Swett published a new podcast about Refactoring Code for a Lego Robot

✍🏾 Articles

What’s new 🆕

Ryan Bates published a new article about RailsCasts Retrospective Part 2: The Fire

Maxime Chevalier published a new article about YJIT Is the Most Memory-Efficient Ruby JIT

Kevin Murphy published an article about Ruby Conf 2023 Recap

Justin Searls published an article about The Future Of Rails Test Data Management: … Rests Entirely On Your Shoulders, It Turns Out

Vladimir Dementyev published a new article about Freezolite: the magic gem for keeping Ruby literals safely frozen

Radan Skoric published an article about Preventing Bugs In Ruby: Tools Of The Trade

I published an article about Inspiring Ruby On Rails Project Ideas

Gowsik Vivekanandan published an article about Rails 7.1 Adds Support For Message Pack As Message Serializer

Prasanth Chaduvula published a new article about Rails 7.1 Introduces ActiveRecord::Base::generates_token_for

Dumebi Okolo published an article about A Beginner’s Guide To Understanding Object Oriented Programming (OOP) In Ruby

Deep Dives 🔍

Stephen Margheim published a new article about SQLite Table Schema and Metadata

Noel Rappin published an article about Better Know A Ruby Thing Bonus: Contestants And Nesting

Dhaval Singh published a new article about What the pluck? - A complete guide to using pluck, an ActiveRecord query method

I published an article about Feedbin: Ruby Open Source RSS Reader

How-Tos 📝

Julian Rubisch published an article about Handle Incoming Webhooks With Lite Job For Ruby On Rails

Andrew Coleman published an article about How Git Hub Actions Can Turn Your Code Into A Docker Daemon: A Quick Way To Automate Ruby Releases

Cloud 66 published a new article about Deploying Hanami 2.0 Ruby application on AWS

Hugo Vast published an article about Turbocharge Your Rails App: A Comprehensive Guide To Async Queries

Brad Gessler published a new article about Rename a RubyGem

Stanko Krtalić published an article about Tracking Online Presence With Action Cable and about Tracking online presence with ActionCable

Mayank Agnihotri published an article about Integrate Google Calendar Api Into Rails Application

Akshay Khot published an article about How To Return 404 Not Found Error In Rails

Dennis Paagman published a new article about Structuring return data

Petr Hlavicka published an article about Gem Credentials Management With Gemstash

Valerie Woolard published a new article about How to Use pgvector for Similarity Search on Heroku Postgres

Myungwoo Song published an article about Automating `Updated At` Timestamps With `Update All` In Ruby On Rails

Délon Newman published an article about Tidy Code → How To Generate Unique Names With A Value Object

Samuel de Moura published an article about Flaky Visual Regression Tests, And What To Do About Them

Related

Victor Shepelev published an article about Language, Perception, And Empathy: Ukrainian’s Gaze (Notes To The Talk Rejected By Ruby Conf)

Kent Beck published a new article about TDD Outcomes

David Copeland published an article about What Is Web Components Buying us?


Please consider becoming a paid subscriber to support this newsletter for just $1.8/week ($7.5/month), and you will receive an ad-free version. Your contribution aids growth and maintains the quality of ShortRuby for everybody:

Support the newsletter for 1.8$/week

If you consider upgrading and want more information, please read Why to subscribe to paid.

1
Share this post

Short Ruby News - Edition #68

newsletter.shortruby.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Lucian Ghinda
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing