👋 Short Ruby News - Edition #61

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

This edition arrived one day late in your inbox. I was involved in Friendly.rb as an organizer and speaker last week, and I spent the weekend catching up on some sleep and spending time with my family. If you're interested in learning how the conference went, check out the #friendlyrb hashtag on Twitter or #friendlyrb hashtag on Mastodon.

You can jump directly to a section:

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

🚀 New Products

🚀 Mike & Nicole: The Pragmatic Studio announced an update for thei Ruby course at The Pragmatic Studio

📅 Events

 📅 Visuality shared a new event Meetup

📅 Boulder Ruby shared their Schedule

📅 Friendly.Rb shared a photo with all the speakers:

👉 All about Code and Ruby

👉 Xavier Noria shared about the autoload section from Upgrading Ruby on Rails — Ruby on Rails Guides

👉 Postmodern asked about resolving a relative path and removing “../” and “./”

👉 Kyle Keesling shared about readable code in Minitest:

👉 Bram Jetten shared a code sample:

👉 Emmanuel Hayford shared a code sample about access tokens:

👉 Bhumi shared a thread about how constants work in Ruby:

👉 Dainius 🇱🇹  asked about recommendations for Turbo Native tutorial/courses:

👉 Stephen Margheim shared about the progress for improving SQLite:

👉 Nicolas Alpi shared a thread about their experience in choosing Turbo Native (read the entire thread or alternatively on nitter):

👉 Benjamín Silva H. asked for gem recommendations:

Here are some of the recommendations:

👉 Nate Berkopec shared about working on N+1:

👉 Takashi Kokubun shared about thinking to remove C extension for Haml:

There was a good conversation about this:

👉 Olly Headey asked about companies hiring Juniors:

Here are some of the replies:

👉 John Nunemaker shared about implementing honeybadge:

Here is an alternative code provided by Pradyumna:

👉 Rob Zolkos shared an invitation to keep gems up to date:

👉 Matt Swanson shared about creating skeleton loaders with Hotwire and Tailwind:

👉 Ruby Cademy shared a code sample showing Object presence:

👉 Bhumi shared about freeze and constant reassignment:

👉 Adam Wathan shared about using partials with Tailwind in Rails:

👉 Harrison Broadbent shared an advice about using .size over .count in Rails:

👉 John Nunemaker shared a code sample about setting limits:

🧰 Gems, Libraries, Tools and Updates

🧰 Dorian announced their PR was merged to Rails about Allow attaching File or Pathname to has_one_attached by dorianmariefr

🧰 Brad Gessler announced a new release of Sitepress version 4

🧰 Brad Gessler announced a new release of sitepress/markdown-rails: Markdown as a static templating language for Rails views and partials. Read the thread (nitter alternative) if you want to see the list of all changes:

🧰 Vladimir Dementyev announced a new release for palkan/isolator

🧰 Kevin Newton announced the rename of YARP to Prism and an update Release v0.13.0 · ruby/prism

🧰 Kirill Platonov announced a new version for polaris_view_components Release v1.2.0 · baoagency/polaris_view_components

🤝 Related (but not Ruby-specific)

🤝 Marc Köhlbrugge published a list of Stripe events useful to watch when building integration with Stripe

 🤝 Steven R. Baker shared about microservices and monolith:

🤝 Nate Berkopec shared about communicating with OSS maintainers:

🤝 Flavio shared a Tailwind tip:

🤝 Matt Swanson shared a tip about fieldset:

More content: 📚 🗞 🎧 🎥 ✍🏾

🗞 Newsletters

🗞 Joe Masilotti published a new edition about ⚡️ Hotwire dev newsletter - September 2023

🗞 Greg Molnar published a new edition of Rails Tricks newsletter about Rails form_with

🗞 Ruby On Rails published a new edition about This Week in Rails - September 29

🗞 Ruby Weekly published a new edition about Dave Thomas is back

🎧 Podcasts

🎧 Creston Jamison published a new podcast about Software Developer Management and Remote Work

🎧 Ruby For All published a new podcast about How We Use ChatGPT | Ruby for All

📽️ 🎥 Videos

📽️ The Rubber Duck Dev Show published a new video about Our Favorite Development Tools with Drew Bragg

Screencasts

🎥 Steven R. Baker published a new stream about The Shitshow 1: Adding Subscriptions to a Ruby on Rails 7 Application

🎥 Hanami Mastery published a new episode about  Phlex with Hanami - make your views written in Ruby. Completely.

🎥 Drifting Ruby published a new video about Episode 421 - Parent Relationships and Turbo Frames

🎥 Thoughtbot published a new video about Upgrading a Rails 3.2 app to Rails 7 and another one that continues the work

🎥 Dean DeHart published a new video about Generative Speech AI with Turbo & Ruby on Rails 7

✍🏾 Articles

What’s new 🆕

Ben Sheldon published an article about Writing Object Shape Friendly Code In Ruby → “This is a brief blog post about how to write your own Ruby application code that is optimized for Object Shapes”

Mayank Agnihotri published an article about Rails 7.1 Now Allows Error Reporter To Handle Several Error Classes → “Recently Rails introduced a new way of handling errors which removes the need of using begin..end and makes handling of multiple errors much more easier to read and write”

Jorge Manrubia published a new article about Navigating personal information with care “With the launch of HEY in 2020, we developed some technology and processes to support a very simple principle: employees shouldn’t have access — intentionally or unintentionally — to personal information from our users without their explicit consent. In this post, I’ll show what this looks like in practice”

Kevin Liebholz published a new article about Cheatsheet “Practical Object Oriented Design in Ruby” → “I took some notes during reading “Practical Object Oriented Design in Ruby” by Sandi Metz”

Stephen Margheim published a new article about Enhancing your Rails app with SQLite: More ActiveRecord adapter improvements “After opening my first few ActiveRecord PRs last week, I kept going and opened 4 more to bring more key improvements to the SQLite adapter”

Prasanth Chaduvula published an article about Set And Restore Public Attributes Around A Block Using Object#With → “Object#with helps to streamline and elegantly improve this technique. It is an addition to the Ruby Object class that offers a simpler method of managing object states”

Julian Rubisch published a new article about An Introduction to LiteStack for Ruby on Rails “In this series of posts, we will look at LiteStack, a one-stop-shop solution that hosts and processes all your production data on a single machine”

Igor Alexandrov published a new article about 18 Tools and Techniques to Improve Rails Application Performance “Within almost 15 years of our history we collected a quite vast collection of tools and techniques that help us to provide the best performance to our clients projects”

Dave Kimura published an article about Using SQLite In Production → “there is a recent push on using SQLite in production, but there's also little talks around the pros and cons of doing so. This article will try to cover the pros and cons of using SQLite in production”

Deep Dives 🔍

Mohit Sindhwani published an article about  Ruby Learning by Reversing: Native Gems, Part 6 → “Part 6 examines how the benchmark is run to compare the performance of the native version with the original Ruby version”

Brandon Weaver published an article about Understanding Ruby Memoization Dev Community → “Memoization is a common technique in Ruby, but alas it's one with a few potential gotchas we need to be aware of to use it effectively. This post gives a short introduction to things that you probably want to watch out for when memoizing, or rather remembering, values that methods compute”

Lucas Barret published an article about The Railtie, The Gem And The Middleware → “The middleware was directly available in the rails Middlewares list without any action except: bundle install and rails s. I wanted to understand how this is possible in Rails”

Julian Rubisch published an article about The Importance Of Postgresql Indexes In Your Rails Application Rails Reviews → “Accurate performance assessment necessitates access to the production database. This article will explore two methods for identifying and rectifying index-related inefficiencies in Postgresql within a Rails environment”

How-Tos 📝

Miles published a new article about Password-less Auth with Rails “for a recent project I implemented password-less authentication for the web. Since this project benefits from HealthKit integration on iOS, I decided to use Turbo Native for a hybrid iOS app which meant I had to extend this password-less flow in Swift too”

Cadu Ribeiro published an article about Using Devcontainers To Set Up Your Development Environment → “Having this reproducible development environment ensures that everyone on the team is using the same environment, making project setup easier”

Michael Roudnitski published an article about Infinite Scrolling With Zero Java Script [Rails] → “In this article, we'll explore how to implement this feature in a Ruby on Rails application without writing a single line of JavaScript, thanks to the Hotwire library”

Alexey Poimtsev published an article about Rails Graph Ql Authentication From Scratch #2 I adds authentication, whoAmI method, inflections and GraphQL schema dump.

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.