Short Ruby Newsletter

Share this post

Short Ruby News - Edition #48

newsletter.shortruby.com

Discover more from Short Ruby Newsletter

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

Short Ruby News - Edition #48

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

Lucian Ghinda (from ShortRuby)
Jun 26, 2023
1
Share this post

Short Ruby News - Edition #48

newsletter.shortruby.com
Share

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)


๐Ÿ’ธ 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!!

Support the newsletter for ~1.5$/week


๐Ÿ‘ Our Community

๐Ÿ‘ Adarshย shared an announcement from RubyCentral:

Source:ย @adarsh@ruby.social

๐Ÿ‘ Amanda Brooke Perinoย sharedย the LeWagon Online Job Fair invitation July 25th

Source:ย @AmandaBPerino

๐Ÿ‘ Evil Martiansย announced a new guest for their Bootstrapping & Fundraising โ€”ย DPL Ep. 4, Thu, Jun 29, 2023, 10:00 AM | Meetup

Source:ย @evilmartians

๐Ÿ‘ Jason Swettย announced the keynote speaker atย Sin City Ruby - Las Vegas Ruby Conference

Source:ย @JasonSwett

He also announced two more speakers:

  • Jason Charnes - โ€œhost of the Remote Ruby podcast and a pillar of the Ruby community.โ€

  • Jeremy Smith - organizer of Blue Ridge Ruby and co-organizer of the podcast IndieRails

๐Ÿ‘ Women In Tech Clujย announced they are supporting Friendly.rb - Ruby conference:

Source:ย @WomenInTechCluj

๐Ÿ‘ Ruby Conf Indiaย announced the dates for the conference:

Source:ย @rubyconfindia

๐Ÿ‘ Taylor Otwell (creator of Laravel)ย shared the following:

Source:ย @taylorotwell

๐Ÿ‘‰ 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. Send me a message at hello@shortruby.com I'll do my best to draft an email for you to send inside your organization.


๐Ÿ‘‰ Joel Drapperย shared a gist showing how to use Paquito to encode Sidekiq job parameters (read the full gist here):

Source:ย @joeldrapper@ruby.social
Source

๐Ÿ‘‰ Karl Oscar Weberย shared a code sample about the beauty and flexibility of Ruby:

Source:ย @Kowfm@ruby.social

๐Ÿ‘‰ Julian Rubischย published a new challenge for the Hotwire Club โ†’ ย Challenge 5: Turbo Frames - Tabbed Navigation

Source:ย @julian_rubisch

๐Ÿ‘‰ Hanami Masteryย shared a code sample showing a new layout for their snippets. But I included this here as it is rare to see a Hanami 2 code sample shared on social media:

Source:ย @HanamiMastery

As a valued reader, your support is crucial for this publication to continue providing new posts. By becoming a subscriber, whether free or paid, you will contribute to the sustainability of my work.


๐Ÿ‘‰ Benito Sernaย shared a thread about about truncating strings in Rails:

Source:ย @bhserna

๐Ÿ‘‰ Kevin Newtonย sharedย YARP Documentation

Source:ย @kddnewton

๐Ÿ‘‰ Keith Pittย shared BuildKite engineering principles to work with Rails monolith:

Source:ย @keithpitt

๐Ÿ‘‰ Nick Schwadererย announced a new theme color Spinel Light part of VSCode Shopify Ruby package

Source:ย @schwad_rb

๐Ÿ‘‰ Ruby Cademyย shared a code sample showing how to use Hash#default_proc to create nested hashes

Source:ย @RubyCademy

๐Ÿคž I imagine that if you have read this so far, you find value in this newsletter.

This is a free publication that relies on the support of its readers. If you'd like to stay updated on new posts and help me continue my work, please consider subscribing for free or choosing a paid subscription.


๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿงฐ Kevin Newtonย announced that YARP has been mergedย Read the PR

Source:ย @kddnewton

๐Ÿงฐ Andy Maleh announced a new update of Glimmer

Source: https://andymaleh.blogspot.com/2023/06/glimmer-dsl-for-wx-for-wxwidgets-gui.html

๐Ÿงฐ Kuba Suderย announced a new tool for extracting Twitter dataย bad_pigeon: A tool for extracting tweet data from GraphQL fetch requests made by the Twitter website

Source: https://github.com/mackuba/bad_pigeon

๐Ÿงฐ Mario Alberto Chรกvezย announced an new applicationย llm_server: Rack API application for Llama.cpp

Source: https://github.com/mariochavez/llm_server

They also published a llm_client: Ruby client to connect to LLM Server.

๐Ÿงฐ Karl Oscar Weberย announced the release of version 3.1 forย camping. Here is a part of the announcement:

In this release we've rewritten theย Reloaderย and formalized the directory structure for larger camping apps. The Reloader is now, just the loader, and it eager loads your camping apps in sequential, descending order. With the new Loader behaviour, you can reopen your Controller, Views, Helpers, and Model classes in a predictable manner. Ruby Gems are automatically loaded, so any Gem that adds an app can also have their constants reopened and redefined or modified.

We're very excited about this new release! I hope ya'll enjoy.

๐Ÿงฐ Igorย announced that their PR about Support for Docker multistage build cache was merged to mrsk

Source: https://github.com/mrsked/mrsk#using-multistage-builder-cache

๐Ÿงฐ Samuel Williamsย announced they merged the Feature #19521: Support for `Module#name=` and `Class#name=`

๐Ÿงฐ Bozhidar Batsovย announced that RuboCop 1.53 now hasย LSP (Language Server Protocol) support. Read the full changelog here

Source:ย @bbatsov

Koichi Itoย added thatย RuboCop - Visual Studio Marketplace has support for RuboCop LSP:

Source:ย @koic

๐Ÿงฐ Adrien Polyย sharedย a work in progress PR from Hotwire/Turbo about Support View Transition API for navigations

๐Ÿงฐ Guilleย announced a new gemย rails-htmx: htmx for Rails

Source: https://github.com/guilleiguaran/rails-htmx

๐Ÿงฐ Xavier Noriaย announced a new PR merged to Rails aboutย Introduce config.autoload_lib

Source: https://github.com/rails/rails/pull/48572

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:

Support the newsletter for ~1.5$/week

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


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

๐Ÿค Jason Swettย shared that there is a relation between quality of codebase and quality of UI:

Source:ย @JasonSwett

๐Ÿค Jim Nielsenย sharedย some thoughts about AR/VR devices displaying HTML content Thoughts from โ€œMeet Safari for Spatial Computingโ€

Source:ย @jimniels

๐Ÿค Drew Braggย asked about for course about Semnatic HTML:

Source:ย @DRBragg

There are a couple of good recommendations. I will share here one of them recommended by Konnor Rogersย โ†’ย WAI-ARIA Roles - Accessibility


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

๐Ÿ—ž Newsletters

๐Ÿ—ž Women On Railsย publishedย a new edition ofย Newsletter Women On Rails [FR version]

๐Ÿ—ž Greg Molnar published a new edition of Rails Tricks โ†’ Offline Ruby and Rails documentation โ€œThe vacation season is starting and it can be helpful to have access without the internet to the documentation of Ruby, Rails, and the gems you use. If you are going on a trip and taking your laptop, you can prepare them in advance by following this little guideโ€

๐Ÿ—ž Allison Pike published a new edition of Once a Maintainer: Michael Grosser โ†’ โ€œEngineering Group Tech Lead at Zendesk and creator of multiple ruby gems, including single_cov, parallel, kennel, and ruco. We talked with Michael about moving from animation to programming, reading code you thought was dead, and building opinionated softwareโ€

๐Ÿ—ž Ruby Weeklyย published a new edition about Cataloging hundreds of Ruby videos

๐Ÿ—ž๏ธย Ruby Libhunt published a new edition of Issue 370 - ORMs are criticized for the wrong reasons

๐Ÿ—ž๏ธ Greg Molnar published a new edition of This Week in Rails: Rails World website and ticket sales, CPK improvements and more!

๐Ÿ—ž Sara Jacksonย published a new edition ofย This Week in Open Source (June 16, 2023) โ€œThis past week we saw updates to Administrate, Flightdeck, and Guidesโ€

๐Ÿ—ž Ruby Radar published a new edition Amsterdam Dreamin'

๐ŸŽง Podcasts

๐ŸŽง Drew Braggย published a new episode of Code and the Coding Coders who Code It. withย Episode 23 - Daniel Huss โ€œDaniel is a Test Double agent and recently gave his first conference talk (Spoiler, it was great)! We talk about the differences between contract and product work, Dragon Ruby, and tending to your code like it's a garden. Daniel crush it on his first, of what I hope will be many, podcast appearancesโ€

๐ŸŽง The Bike Shed published a new episode 389: Review Season โ€œReview season is upon us. Stephanie and Joรซl think about growth and goals and talk about reviews: how to do them, how to write them for yourself, and how to write them for othersโ€

๐ŸŽงThe Ruby On Rails Podcastย published a new episode aboutย The Return of Rocky Mountain Ruby with Spike Ilacqua โ€œRocky Mountain Ruby is baaaaaack! Conference organizer, Spike Ilacqua, joined Brittany to discuss why he was bringing the conference back to life in Boulder, CO on October 5th and 6th, 2023. They talk about the advice he has gotten, the open CFP and funding the conference. The wrap up talking about how Spike finds AI kinda cool and kinda scary.โ€

๐ŸŽง Remote Rubyย published a new episode aboutย Jason Goes to Infinity (and Beyond) โ€œOn this episode of Remote Ruby, Jason, Chris, and Andrew reunite after a hiatus, starting their conversation with a playful idea of starting a band and Andrew possibly recording a new podcast introโ€

๐ŸŽง The Rails Changelogย published a new episode about 008: TLS/SSL on by default, New PostgreSQL migration commands

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

Talks

๐Ÿ“ฝ๏ธ Yaroslav Shmarovย and Adrian Marin published a new episode of Friendly Show ย about E3 The Ruby On Rails Interview Bible - Author Nezir Zahiroviฤ‡ talks about his book

๐Ÿ“ฝ๏ธ Creston Jamisonย publishedย a new video aboutย The Future of Dragon Ruby with Amir Rajan | Rubber Duck Dev Show 89

๐Ÿ“ฝ๏ธ Jason Swettย published a new episode aboutย Adding tests to an existing application (Code with Jason Meetup session)

Screencasts

๐ŸŽฅย ย ย Dean De Hartย published a series of videos:

  • Sitemaps for SEO in Ruby on Rails 7

  • Reactive Stimulus Values in Ruby on Rails 7

  • Fragment and Collection Cache in Ruby on Rails 7

  • Factory Bot Testing with Active Storage and Devise | Ruby on Rails 7 Tutorial

  • Low Level Cache for Top Articles | Ruby on Rails 7

๐ŸŽฅ Joel Drapper and Kasper Timm Hansen published a Twitch stream about Exploring a new form pattern for Rails

๐ŸŽฅ Pete Hawkinsย publishedย new videos:

  • Moving away from importmaps to esbuild in Rails 7

  • Blocking disposable email domains in Rails

๐ŸŽฅ Drifting Rubyย publishedย new videos:"

  • Episode 406 - Rate Limiting from Scratch

  • Episode 407 - Email Tracking

โœ๐Ÿพ Articles

Whatโ€™s new

Julie Kent published an article about Intro to Propshaft: A new asset pipeline for Rails โ€œExplore the future of asset pipelines in Rails with Propshaft! Discover how this cutting-edge technology enhances the management and delivery of assets while simplifying your development workflowโ€

Gift Egwuenu published an article about May 2023 RubyGems Updates โ€œAs part of our efforts at Ruby Central, we publish a recap of the work that weโ€™ve done the previous month. Read on to find out what updates were made to RubyGems and RubyGems.org in Mayโ€

Gavin Morriceย publishedย a new article aboutย Avoid using SecureRandom when testing your Ruby code โ€œusing SecureRandom when writing tests for your Ruby code can make your tests harder to debug and more prone to flakiness.โ€

Deepak Mahakale published an article about Rails 7 extends enum support for Postgres adapter โ€œNow, Rails 7 has extended the ability to rename an enum, add enum value and rename enum value for the Postgres database adapterโ€

Collin Donnell published an article about MVC Isnโ€™t MVC โ€œabout where MVC started, the variations I've experienced on native and web, and some thoughts about thatโ€

[Beginner] Gabrielle J.ย publishedย a new article aboutย Ruby: An Intro for the Curious-Minded โ€œIf you're new to programming, Ruby is a great language to start learning. Ruby is a general-purpose, object-oriented programming language known for its readability and flexibilityโ€

Konnor Rogersย publishedย a new article aboutย Pulling your dev.to posts down locally โ€œI'm about to show you how I pulled all my writings on dev.to down locally into a new Bridgetown site I madeโ€

How-Tos

Igor Alexandrov and Sergei Masiutinย publishedย a new article aboutย How To Use Basecampโ€™s MRSK With AWS and GitHub

Richard Huang wrote an article about Use call_helper to set rails config.load_defaults โ†’ โ€œSynvert provides the ability to write code snippets that can automatically rewrite your source code. This video demonstrates how to use call_helper to set rails config.load_defaultsโ€

Akshay Khotย wrote a new article about How to Split a List into N Equal Parts in Ruby (and Rails) โ†’ โ€œThis article shows you can split (or chunk) a list of items into n-equally sized parts using the `each_slice` method in Ruby and `in_groups_of` method in Railsโ€

Matt Brictson published an article about Tips for writing Rails tasks with Thor instead ofย Rake

Mailsnag published an article about Rails 7 + Vuetify 3 (MPA Style) โ€œIn this article, we will demonstrate how to set up a Rails 7 project with Vuetify 3 (and Vue 3 ) using the MPA approach. We will also use Turbo Drive to get the performance benefits of SPA without the added complexity.โ€

Benito Serna published a new article about Truncate in the middle with truncate rails helper โ†’ โ€œImagine that you want to truncate a filename, but you want to keep showing the extension of the file. Like โ€œA big file name thatโ€ฆawesome.pdfโ€. How would you do it?โ€

Connor James and Tom de Bruijn published an article about Exceptional Error Reporting for Rails Exceptions โ€œIf you want insights into your application's exceptions but don't have time to invest in adding verbose logic to your code, we've got some exceptional news: The AppSignal for Ruby gem 3.4.1 now supports the Rails error reporter!โ€

Sam Rubyย published an article aboutย Around the World With SQLite3 and Rsync โ€œFly.io runs apps close to users around the world. This same infrastructure can be used to route requests to where the data residesโ€

Harrison Broadbent published an article about Custom Credentials in Your Rails App โ€” Replacing .env with Rails credentials โ€œIn this article, we're going to dive into the basics of Rails credentials, explore the benefits and drawbacks of this approach, and demonstrate how easy it is to integrate this powerful tool into your Rails app development processโ€

Antonย publishedย a new article aboutย The Service Object pattern in Ruby applications with unified approach โ†’ โ€œThe purpose of this post is to demonstrate how to prepare the base for further development of uniform services in Ruby projectsโ€

Ahmad Razaย publishedย a new article aboutย Google Login in Rails 7 with devise โ€œIn this comprehensive guide, we'll walk you through the steps to integrate Google login into your Rails 7 app, allowing users to authenticate using their Google accountsโ€

Kevin Luoย published a new article aboutย Unleash Devise-Enabling All Modules โ€œIn this article, I will enable all 10 modules on the User model one by one. I suggest reading this article sequentially and also following the codes in each chapterโ€

Hรนng Lรชย publishedย a new article aboutย Rails nested form (new gem with Stimulus) โ€œWhen Stimulus is came out, Rails devs is suggested to use Stimulus as Javascript library in their projects. So, I created a gem for handling dynamic nested forms with Stimulus JSโ€

Deep Dives

Maciej Mensfeldย published an article about Inside Kafka: Enhancing Data Reliability Through Transactional Offsets with Karafka โ€œThe crux of this article is about managing offsets - unique identifiers for messages within Kafka's partitions. Often, there's a need to manage offsets alongside database operations within a transaction, especially when handling potential process crashes and anomalies, minimizing the risk of double processingโ€

Cody Normanย publishedย a new article aboutย Rails Console Deep Dive โ€œHere are some handy tips and tricks to get the most from the Rails consoleโ€

Steve Polito published an article about Inspecting Ruby's inspect method โ€œIf youโ€™ve ever worked with a class in Rubyโ€™s Core Library or Rails, you might not realize that special care was taken to print useful information when used in the context of an IRB sessionโ€

Vishal Yadav published an article about Using enable-load-relative flag in building Ruby binaries โ€œI'm working on building neetoCI, which is a CI/CD solution. While building pre-compiled Ruby binaries we ran into some challenges. This blog post explores the problems we faced and how we solved themโ€

Tobias L. Maierย published an article aboutย Comparing Pundit RSpec test Approaches โ€œI found two approaches to test Pundit policies with RSpec. Both approaches are described in the Pundit README and I want to compare them in this postโ€

Darren Broemmerย published an article aboutย An Introduction to Lambdas in Ruby โ€œIn this article, we'll explore how you can use Lambda functions in Ruby to simplify your code and make it more powerfulโ€

Paweล‚ Dฤ…browskiย published an article aboutย Breaking down the Rails request cycle: โ€œThis article is a journey from a moment when the visitor submits the website address to a moment when a view in your Rails application is rendered. Jump on board!โ€

Related

Lucas Barretย publishedย a new article aboutย Logged VS Unlogged table Performance in Postgres โ€œTo ensure this durability and consistency, relational databases use several techniques. One of these is to use a WAL file (Write-Ahead Log file). Let's see what this means and how it affects the performance of our read and writes operations. And determines what can suit more for an ETL process.โ€


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:

Support the newsletter for ~1.5$/week

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

1
Share this post

Short Ruby News - Edition #48

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