Short Ruby News - Edition #85

The one where we discuss Ruby maintainability, how to convince C-level people to keep using Ruby, and that 2023 was the year with the most contributions to Ruby

You can jump directly to a section:

๐Ÿš€ New Products & ๐Ÿ“… Events

๐Ÿ‘‰ All about Code and Ruby: ๐Ÿ’ป Code, ๐Ÿ“Code Design,๐Ÿ’กAround, โค๏ธ Why Choose Ruby

๐Ÿงฐ Gems, Libraries, and Updates: ๐Ÿ†• New, ๐Ÿงฐ Updates and ๐Ÿ‘€ Keep an eye on

[Promo โฌ‡] RailsCamp

Rails Camp USA is an outdoorsy un-conference series focused on connecting developers worldwide at summer camps in different locations across the US. Our community is a place where tech conference attendees can relax and unwind. We engage in outdoor activities, collaborate on side projects, network, practice conference talks together, and have fun with kayaking, board games, hammock lounging, and karaoke. Our scholarship program covers ticket costs and potentially (with enough funding) cover travel expenses for those who need it.

๐Ÿš€ New Products & Discounts

๐Ÿš€ Josef Strzibny launched the Kamal Handbook.

๐Ÿ’ธ If you want a 10% discount, buy from this affiliate link. Josef was kind enough to offer a discount for our Short Ruby Community.

๐Ÿ’ธ Andrew Atkinson offered Short Ruby Community members a 35% discount using the code SinCityPostgreSQL at checkout, a courtesy offer for the occasion of Sin City Ruby. Buy at Pragmatic Bookshelf and use the code SinCityPostgreSQL

๐Ÿš€ Obie Fernandez pre-launched a new book Patterns of Application Development Using AI

๐Ÿ“… Events

๐Ÿ“… Friendly.RB announced the first batch of speakers for this year's edition. Tickets are available at Friendly.rb

๐Ÿ“… Eu Ru Ko shared that the conference will only be in person and reduced the pricing by 10EUR โ†’ EuRuKo.org

๐Ÿ“… Helvetic Ruby announced CFP open for lightning talks Helvetic Ruby 2024 lightning talk submission

๐Ÿ“… Geneva Ruby Brigade announced a new meetup in Geneva RSVP here

๐Ÿ“… Balticruby announced a junior track

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ’ป Code Samples

๐Ÿ‘‰ Ruby On Rails shared a code sample showing how to use where with a hash condition where keys represent fields:

๐Ÿ‘‰ Charles Oliver Nutter shared about making Ruby __method__ / __callee__ 10x faster in next JRuby version:

๐Ÿ‘‰ Rรฉmy Hannequin shared a code sample showing how to use astronoby gem to calculate the location of the Sun in the sky:

There are more examples in the thread Remy shared

๐Ÿ‘‰ Kevin Newton shared a code sample showing writing to a local variable with named capture groups:

๐Ÿ‘‰ Ahmed Nadar shared about how to set turbo cache to false:

๐Ÿ‘‰ Ruby Cademy shared about using touch_all:

Robert Starsi added:

๐Ÿ‘‰ John Mc Dowall shared about using Rails inflector:

๐Ÿ‘‰ Joel Moss shared a code sample showing how they are planning to implement signature type checking at Runtime:

When comparing with Sorbet:

Joel also published a gem called delivered on Github.

๐Ÿ‘‰ Juraj Kostolanskรฝ shared a rake task to keep only the last N container images in Github:

๐Ÿ‘‰ Prabin Poudel shared about skipping all tests inside a folder in RSpec:

๐Ÿ‘‰ Nate Hopkins shared Kamal Configuration

๐Ÿ‘‰ Greg Navis shared a thread about Rack::Runtime. I am including here just the first post:

๐Ÿ‘‰ Jan Klimo shared a reminder about the string column in Rails + PostgreSQL:

๐Ÿ‘‰ Ruby Cademy shared a tip about running db:system:change to change the database,yml file:

๐Ÿ‘‰ Nate Hopkins shared about using rails routes and fzf:

๐Ÿ‘‰ Nate Hopkins shared a code sample showing whatโ€™s coming in turbo_boost-commands

๐Ÿ“ Thinking about Code Design

๐Ÿ‘‰ Matt Swanson shared about Hotwire:

๐Ÿ‘‰ Stephen Margheim shared about how to configure SQLite to be ready for production:

Until Rails 8 the recommendation is to use this gem activerecord-enhancedsqlite3-adapter or the litestack

He also added later:

๐Ÿ‘‰ Matheus Richard shared about naming concerns/traits as nouns:

๐Ÿ‘‰ Mika Henriksson asked a question about multi-step form build with Bootstrap tabs:

Here are some replies:

A step by step tutorial about how to build a multi step with Hotwire was sharaed last year by Andrea

๐Ÿ‘‰ Matt Swanson asked about using solid_queue for 6M jobs per day:

Here is an excellent reply from Rosa, the author of solid_queue gem:

๐Ÿ‘‰ Ryan Bates shared about the maintainability of Ruby:

There are replies on both Twitter and Ruby.Social. This is a good conversation to have about how to write maintainable Ruby code. I am selecting here some replies:

๐Ÿ‘‰ Nate Hopkins asked about guarding against potential nil values:

Here are some replies:

๐Ÿ‘‰ Samuel Williams asked about recommendations of Gems for Rails for tracking and logging Active Record field access:

๐Ÿ‘‰ Brian Casel asked about how to use Hotwire in Rails. See the short video they presented describing the issue:

Some replies:

๐Ÿ‘‰ John Mc Dowall shared a tip about Rails domain modelling:

๐Ÿ‘‰ Gavin Morrice asked about using jsonb column types to define flexible data store:

Some replies:

๐Ÿ’ก Around code (news, findings, books and more - all about Ruby)

๐Ÿ‘‰ Ruby On Rails shared two more guides are refreshes and invited for review and feedback: [RF-DOCS] Action View Overview Guide [ci-skip] by bhumi1102 ยท Pull Request #51435 ยท rails/rails

๐Ÿ‘‰ John Gorriceta shared they want to read more content about building startups with Rails:

and it seems like Rails Foundation is working on it:

๐Ÿ‘‰ Robert Pankowecki shared about using difftastic with Ruby:

๐Ÿ‘‰ Matt Swanson shared a VSCode extension for multi-line commenting in ERB files ERB Commenter - Visual Studio Marketplace

๐Ÿ‘‰ Martin Yanchev asked about creating beautiful emails:

Here are some recommendations:

๐Ÿ‘‰ Jeremy Smith shared a thread about Sin City Ruby and why it is good to participate to conferences:

โค๏ธ Why Choose Ruby

โค๏ธ Xavier Noria shared about working on Zeitwerk for 5 years:

โค๏ธ Irina Nazarova shared about the experience at SinCityRuby:

โค๏ธ Igor Alexandrov asked about how to convince a C-level officer that thinks Ruby is dying:

Here are some replies:

โค๏ธ Prabin Poudel shared about the Ruby community

โค๏ธ Zack Gilbert shared about the direction Rails is headed:

โค๏ธ  Nate Hopkins shared about the simplicity of Rails + Propshaft + Importmaps:

โค๏ธ Mike Coutermarsh shared about the benefits of having a Rails console:

โค๏ธ gaultierq asked on /r/rails about:

Here are some replies:

๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿ†• New Gems and Repos

๐Ÿ†• Radan Skoriฤ‡ announced a new project called Interactive Ruby Debug Tutorial

๐Ÿ†•  Ryan Bates announced a new fork of prettier-plugin-tailwind to make it work in ERB:

๐Ÿงฐ Updates

๐Ÿงฐ Stephann V. shared that overmind can be installed via Ruby overmind/packaging/rubygems/README.md at master ยท DarthSim/overmind

๐Ÿงฐ Ryan Bates announced a new version compatible with Ruby 3.3 for ruby-warrior: Game written in Ruby for learning Ruby

๐Ÿงฐ Alex Rudall announced a new version of Release v6.4.0 ยท alexrudall/ruby-openai

๐Ÿงฐ Allison shared a script to check for undocumented gem incompatibilities with Rails 7.1 see the discussion on Reddit at From the rails community on Reddit: Undocumented gem incompatibilities with Rails 7.1 and the script is at incompat_71.rb

๐Ÿ‘€ Keep an eye on

๐Ÿค Related (but not Ruby-specific)

๐Ÿค Michael Buckbee published a guide about blocking AI bots:

๐Ÿค Thomas Roccia shared an image with the XZ attack:

More content: ๐Ÿ“š ๐Ÿ—ž ๐ŸŽง ๐ŸŽฅ โœ๐Ÿพ

๐Ÿ“ฝ๏ธ Slides

๐Ÿ“ฝ๏ธ Vladimir Dementyev published the slides from [SF Ruby, March 2024] Rails on Wasm

๐Ÿ“ฝ๏ธ Irina Nazarova also published their slides about How to do well in consulting by Evil Martians

๐Ÿ—ž Newsletters

๐Ÿ—ž Ruby Central published a new edition of March 2024 Newsletter

๐Ÿ—ž Emmanuel Hayford published a new edition about Retry known idempotent SELECT queries, New Active Record configurat...

๐Ÿ—ž Ruby Weekly published a new edition about Recurring tasks come to Solid Queue

๐Ÿ—ž Ruby Libhunt published a new edition about Issue 410 - Being laid off in 2023-2024 as an early-career developer

๐Ÿ—ž Hotwire Weekly published a new edition about  Week 13 - Happy Easter!

๐ŸŽง Podcasts

๐ŸŽง The Bike Shed published a new podcast about The Bike Shed: 420: Test Database Woes

๐ŸŽง The Ruby on Rails Podcast published a new podcast about The Ruby on Rails Podcast Episode 512: RailsConf With Ufuk Kayserilioglu

๐ŸŽง Jason Swett published a new podcast about 216 - Andy Croll, Co-Chair of RailsConf 2024 - The Code with Jason Podcast

๐ŸŽง Ruby For All published a new podcast about The State of Debugging in Ruby โ€” A Puts-tastic Journey

๐ŸŽง Ruby Rogues published a new podcast about Leveraging SQLite in Web Development - RUBY 630 - Ruby Rogues

๐Ÿ“ฝ๏ธ ๐ŸŽฅ Videos

Screencasts

๐ŸŽฅ Cezar Halmagean published a new video about Building a Property Management System (live stream)

๐ŸŽฅ Drifting Ruby published a new video about Episode 449 - Previous/Next Record | Drifting Ruby

๐ŸŽฅ Dean DeHart published a new video about Building my SAAS Deanout for Game Hosting on Rails

โœ๐Ÿพ Articles

Whatโ€™s new ๐Ÿ†•

Felipe Vogel published an article about Being laid off in 2023-2024 as an early-career developer

Stefanni Brasil published an article about thoughtbot at Sin City Ruby 2024. Andrew Atkinson also published an article about Sin City Ruby 2024

Ruby Central published a new article about RailsConf 2024 - Speaker Spotlight - Chris Oliver

Piotr Jurewicz published an article about Do you tune out Ruby deprecation warnings?

Greg Molnar published a new article about Secure code review checklist

Reni Mercier published an article about Pick a standard and move on

Iddrisu Salley published an article about Ruby most useful Hash methods

Juraj Maลฅaลกe published a new article about Searching for the first job with rails backend

Jared White published an article about Ruby, Fully Stacked

Ben Sheldon published an article about Rails Active Record: Will it bind?

Mathieu Eustachy published an article about What is a Ruby implementation?

David Boureau published an article about Rollup vs Esbuild for Rails

Deep Dives ๐Ÿ”

Joe Masilotti published a new article about Turbo Native iOS and Android apps in 15 minutes

Dmitirii Ivliev published an article about Rails Timestamping Guide

Jan Bajena published an article about Mastering Large Backfill Migrations in Rails and Sidekiq

Akshay Khot published an article about Build Your Own Router in Ruby

How-TOs ๐Ÿ“

Hans Schnedlitz published an article about Porting a Ruby Gem to the browser with ruby.wasm

Steve Polito published an article about Configure GitHub Actions to work with rspec-rails

Gavin Morrice published an article about Using JSONB columns to create pseudo-attributes in Rails

RailsDesigner published a new article about Data-Attributes Magic with Tailwind CSS & Stimulus

Ariel Juodziukynas published an article about Speeding Up Assets Precompilation

Alkesh Ghorpade published an article about Keeping your database migrations strong with strong_migrations gem

Related

Cody Norman published a new article about Entering my Purple Cow Era

Ahmed Nadar published a new article about Your true value beyond the job title

Pascal Lalibertรฉ published a new article about Level 3 Sharpening: Generate New Product Ideas

Reply

or to participate.