Short Ruby News - Edition #62

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

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

You can jump directly to a section:

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

🚀 New Products

🚀 Marco Roth announced at RailsWorld a wide range of improvements for Hotwire and launched hotwire.io:

🚀 Brad Gessler launched their new product tinyzap.com

🚀 Greg Molnar announced their book is available to buy Secure code review for Rails Developers

🚀 Landon Gray (He/Him) announced a new community Ruby AI on Twitter:

📅 Events

This conference season started with Wroclove.rb in Wroclaw followed by Euruko in Vilnius, and continued with Friendly.rb in Bucharest (see photos from the event here).

This week we had 3 conferences running at the same time:

Rails World in Amsterdam - see more pictures and insights at #RailsWorld@twitter (nitter link) , #[email protected]

RubyConf Thailand - see more pictures and insights at #rubyconfth@twitter (nitter link), #[email protected]

📅 Brighton Ruby Conference  announced early bird tickets available at  Brighton Ruby Conference:

📅 Rubyday | 16th June | Verona announced early bird tickets open at RubyDay Tickets  and CFP open at rubyday 2024: Call for Papers

📅 Inao shared that timetable for Oedo conference 大江戸Ruby会議10 is published:

👉 All about Code and Ruby

👉 Xavier Noria shared that it is never too late to learn programming:

👉 David Teren also shared their story:

👉 Emmanuel Hayford announced the Rails Youtube channel where videos from RailsWorld will be published → Ruby on Rails

👉 Marc Busqué shared a code sample showing that String#[]

Some additional replies showing other use cases:

👉 Paul Mucur shared about setting Cache-Control on public files:

👉 Kasper Timm Hansen shared a code sample showing how to use their gem active_job-performs

👉 Samuel Williams shared a screenshot from a small game implemented at their repo where they show how to use Falcon as a web server with Rails (see falcon-rails-example)

👉 Juraj Kostolanský shared a Stimulus controller that implements an around action for a Turbo Stream event:

👉 David Aldridge shared a code sample about PostgreSQL partitioning:

If you like this newsletter and get value from reading it, please consider becoming a paid subscriber to support 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:

👉 Ruby Cademy shared  a Rails tip for creating direct URLs:

👉 Emmanuel Hayford shared that Rails 7.1 checkbox will respected the checked option:

👉 Josef Strzibny shared a code sample showing how to add slugs and UUIDs to a rails model:

👉 Robby Russell asked about how is hiring Rails developers and received some good replies (nitter alternative):

Here are some replies:

👉 Brad Gessler shared code sample from how to work with select from their project rubymonolith/superform: Build highly customizable forms in Rails

👉 Josef Strzibny shared a code sample showing Rails helpers for updating a counter:

👉 Mike Coutermarsh shared that Rails 7.1 is fixing the long index name error:

👉 Yaroslav Shmarov shared a screenshot from RailsWorld that summarisez the direction of rails:

👉 Stanislav Katkov shared a screenshot from Flavor presentation where they share that Rails 7.1 now has HTML5 sanitizer support:

👉 Kyle Daigle shared why they like Rails:

👉 Tobi Lutke talked about how Rails influenced other web frameworks:

👉 José Valim shared a thread about one person framework (open the post to see the entire text, I cut here just the first part):

👉 Jason Meller shared they are already running Rails 7.1 in production:

👉 Drazen asked if anyone is building something with Ruby and AI:

👉 Josef Strzibny shared a code sample about configuring disk service in Rails:

🧰 Gems, Libraries, Tools and Updates

🧰 Rails announced the release of Rails 7.1 during Rails World conference:

🧰 Tim Riley announced a new release of Hanami version 2.1.0.beta2 (see source diff here):

🧰 Alberto Fernández-Capel opened a PR at hotwire/turbo about Page refreshes by afcapel · Pull Request #1019 · hotwired/turbo

🆕 🧰 Marco Roth published a new extension for VSCode - Stimulus LSP - Intelligent Stimulus tooling for Visual Studio Code

🆕 🧰 Dima Fatko published a new gem columns_trace - Detect unnecessary selected database columns

He also recommended to read the following article: Reasons Why Select * Is Bad For SQL Performance

🧰 Tiago Cardoso announced the release of version 1.0 of httpx - An HTTP client library for ruby

🆕 🧰 Justin Searls and Aaron Patterson announced a new testing framework called TLDR - A Ruby test framework for people who don't have time for slow tests

Justin published an article explaining the reasons behind the decision of running tests in 1.8 seconds

🆕 🧰 Samuel Williams announced a demo repository where they show a Web Socker in Rails 7.1 running via Falcon web server falcon-rails-example/app/controllers/chat_controller.rb at 51536cab600017eadcf64f9733259058fa8828c9 · socketry/falcon-rails-example:

🆕 🧰 Modern Rails shared a repo they created to play with solid cache over SQLite → codergeek121/solid_cache_demo: Small demo app with solid_cache sqlite setup

🤝 Related (but not Ruby-specific)

🤝 Joel Drapper shared about using GPT to name things:

🤝 Tony Dinh shared about being consistent in their work:

🤝 Paul Graham shared about what startup ideas to pick:

🤝 Nate Hopkins shared about working smarter not harder:

🤝 Tim Morgan shared about “I don’t know” as a powerful start of learning journey:

 🤝 Hassan Zahirnia shared a Tailwind CSS trick:

More content: 📚 🗞 🎧 🎥 ✍🏾

🗞 Newsletters

🗞 Ruby Weekly published a new edition It's a Rails (7.1) World

🗞 Awesome Ruby Newsletter published a new edition Issue 385 - Writing Object Shape friendly code in Ruby

🗞 Ruby Radar published a new edition about From Amsterdam With Love

🎧 Podcasts

🎧 The Ruby on Rails Podcast published a new episode about Ruby On Rails As A Career Choice With Olly Headey 

🎧 Maintainable Software Podcast published a new episode about Dave Bryant Copeland Quantifying The Carrying Cost

🎧 Lucas Barret published a new episode about Gem Ruby Show : Julian Rubisch, Cable Ready

🎧 Ruby For All published a new podcast about Welcome back! | Ruby for All | Episode 46

📽️ 🎥 Videos

Screencasts

🎥 Sebastian Wilgosz published a new episode about Registry Pattern In Hanami Apps

🎥 GoRails published a video about Health Check Endpoint In Rails 7.1 (Example)

🎥 Dave Kimura published a video about Embedding Stripe Checkout

🎥 Dean DeHart published two videos about Revise Auth Gem In Ruby On Rails 7 and about GPT Turbo To Audio: Real Time Answers With Rails 7

🎥 Thoughtbot published a new video about The final push to Rails 7

✍🏾 Articles

What’s new 🆕

Victor Shepelev published an article about That Useless Ruby Syntax Sugar That Emerged In New Versions → “What I feel as an interesting mind exercise, though, is providing a thought framework of looking at the new syntaxes and language features to understand what are their causes, reasoning, and consequences”

Ruby Central published an article about See The Full Line Up: Ruby Conf 2023 Announces 2023 Speakers → “This year’s keynote speakers represent some of the values we strive to promote in the Ruby community; like continuous learning, inclusion, collaboration and empathy”

Donal McBreen published an article about Solid Cache → “Solid Cache uses a SQL database as its cache store. We get a much larger cache at a fraction of the storage costs of memory caches like Redis or Memcached. For us, that’s a cache size of months rather than days”

Adrian Marin published an article about The 2023 Ruby Conference Season Is (Almost) Over → “I call it a Conference season because we just had 6 Ruby conferences in four consecutive weeks on three continents. And that's wild! This is just a testament to how vibrant and healthy the Ruby community really is”

Paweł Świątkowski published an article about On Using Phlex “Seb Wilgosz recently published an article Phlex with Hanami on Hanami Mastery. It made the latest Ruby Weekly issue as the first item and generally was quite well received. I write this post as an addendum to Seb’s article, giving my perspective on using Phlex in Ruby applications”

Kemal Akkoyun & Javier Honduvilla Coto published an article about Profiling Python And Ruby Using eBPF → “ In our continued efforts to expand and improve your profiling experience, we are excited to announce new additions to our language support: Ruby and Python”

Karol Galanciak published an article about Integration Patterns For Distributed Architecture Intro To Kafka → “The good news is that we have many tools available that we could add to our Ruby on Rails applications to make them work with Kafka. And there is even better news - one of these tools is a clear winner - Karafka”

Chad Pytel published an article about Running Old Ruby Versions On Apple Silicon By Fully Emulating X86 64 → “If you find yourself in a situation where you need to run an older version of Ruby on Apple Silicon, this might be a solution for you”

Navaneeth D published an article about Rails 7.1 Adds Support For Multi Column Ordering In Active Record/Batches → “In Rails 7.1, an enhancement has been introduced to ActiveRecord::Batches methods, related to models with composite primary keys. This update allows developers to specify ascending or descending order for each key within a composite primary key”

Deep Dives 🔍

Akshay Khot published an article about Refactoring: Improving The Design Of Existing Code (My Notes And Highlights) → “What follows are not my thoughts, opinions and interpretations, but just a copy + paste of my notes and highlights taken straight from the book”

Cherry Ramatis published an article about Pattern Matching Dealing With The If Statement Nightmare → “I think we all faced(or wrote) that 20 lines of if statements to check a single variable in all the possibilities, and I think we all suffered to add one more statement to that function leaving it even more unreadable. Well, on this article we'll see a better way in my opinion called pattern matching, essentially we'll learn how to use switch cases with steroids”

How-Tos 📝

Peter Berkenbosch published an article about Getting Started With Solidus And A Custom Tailwind CSS Frontend → “This first article is the setup and getting Solidus up and running for you locally”

Aestimo Kirina published an article about Using Action Policy For A Ruby On Rails App: The Basics → “In this two-part series, we'll take a deep dive into using the Action Policy gem for a Ruby on Rails blog application. In this part, we'll cover the basics of Action Policy”

Rishi Jain published an article about Dealing With Schema Changes In Rails 7 “When you upgrade a Rails application from Rails 6.1 to 7.0, you may suddenly see a lot of changes in the schema.rb file and wonder where those changes come from and how to deal with them. In this post, we look at what those changes are, and how to deal with them when upgrading a Rails application”

Matt Brictson published an article about Bundler 2.4.20 Understands .Ruby Version Files → “You can now DRY up your Ruby version declarations with Bundler’s new Gemfile syntax”

Randy Stauner published an article about Enabling Bootsnap In Truffle Ruby → “Eager loading the app with a native build of the latest TruffleRuby commit on a development cloud instance was taking as long as 134 seconds. By simply enabling Bootsnap it finishes in under 122 seconds (consistently about 10% faster)”

Dennis Martinez published an article about Distributing Docker Images For Rails Apps With Git Hub Actions → “Learn how to automatically build and distribute Docker images for your Rails apps and streamline your development, testing, and deployment workflows”

🔂 Related

Rémy Hannequin published a new article about “I have a bad English accent”

Daniel Terhorst North published a new article about McKinsey Developer Productivity Review

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:

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

Reply

or to participate.