Short Ruby News - Edition #96

Explore Ruby's latest: InsertBot for Rails, RubyConf updates, XSS testing, HTTP/2 servers in 6 lines, and Unicode handling. New gems and fresh Ruby content: newsletters, podcasts, videos, and articles

You can jump directly to a section:

πŸš€ Launches & πŸ“… Events

πŸ‘‰ All about Code and Ruby: πŸ’» Code, πŸ“Code Design,πŸ’‘Around, ❀️ Why Choose Ruby

🧰 Gems, Libraries, and Updates: πŸ†• New, 🧰 Updates and πŸ‘€ Keep an eye on

🀝 Related (but not Ruby-specific)

[Partner ⬇] capsule.graphics

Capsule is a small design and engineering studio focused on user interfaces. We help you make your stuff look really cool so that people will love you and buy your products.Book us monthly for just a website, for a whole year, or for a phone call. With Unlimited Revisions'β„’, you'll always be happy. Say goodbye when we're done.With the we-love-the-ruby-community discount, we're offering 20% off our one-off branding + website product thing, Rocket, for anybody that clicks this link: (https://capsule.graphics/rubyrocket)

πŸš€ Launches and discounts

πŸš€ Alex Rudall shared the problem he’s trying to solve with insertrobot.com

πŸš€ Karl Weber launched a 20% off discount for Short Ruby News subscribers for their Capsule Rocket 

(discount is automatically applied at capsule.graphics/rubyrocket)

πŸ“… Events

πŸ“… This week's meetups and conferences (source):

πŸ“… Wnb.Rb shared they are raising money top support 7 women to attend RubyConf Africa. You can donate at Stripe Checkout

πŸ“… Friendly.Rb shared Friendly.rb - Your friendy European Ruby conference, announced the CFP will close early on 1st July and announced a new speaker Julian Cheal:

πŸ“… Ruby Central shared KentBeck as a keynote speaker at RubyConf and tickets will go on sale on June 26:

πŸ“… Madison+ Ruby announced Saron Yitbarek as a speaker Speakers | Madison Ruby

Image

πŸ“… Josias Schneider | The Outsider Dev shared that Ruby Floripa is back on July 27th. Do send in your talks.

πŸ‘‰ All about Code and Ruby

πŸ’» Code Samples

πŸ’» Sam Saffron shared how the latest ruby memory profiler works for trivial profiling.

πŸ’» Samuel Williams shared a thread on how to get a Hello World endpoint up and running in 6 lines with HTTP/2 support and deploying it.

πŸ’» Prabin Poudel shared a gist demonstrating how to convert any DateTime object to any timezone while still keeping the same date and time.

πŸ’» Ronin Rb shared  what it looks like to write a XSS test using ronin-rb/ronin-exploits: A Ruby micro-framework for writing and running exploits

πŸ’» Lucian Ghinda shared a detailed thread on Twitter on how to use endless blocks to name a transaction. Here is one of the posts:

πŸ’» Joel Drapper shared a code sample showing how to implement a rounded link with Phlex:

πŸ’» Josh Pigford shared two code samples of how their code was refactored by ChatGPT:

πŸ’» Max Vel Dink shared a code sample about Sorbet T::Enum:

πŸ’» Joel Drapper shared a friendly reminder about using frozen string literal:

πŸ’» David Alejandro shared a tip about disabling Ahoy on Turbo prefetch-on-hover:

He added about missing clicks:

πŸ’» Matt Swanson shared a code sample about removing failed custom domains:

πŸ’» Avdi Grimm asked about Ruby oddities:

Here are some replies:

πŸ’» Allancoder shared a code sample about callback hell in Rails:

πŸ’» Michael Chaney shared a long post about Unicode and UTF-8. Here is just a part of it, but you should read it all:

πŸ’» Study Every Day shared a code sample about using a comparison validator:

πŸ’» θ’Όζ™‚εΌ¦δΉŸ shared a code sample about Event Storming:

πŸ’» Ruby Cademy shared about how to make Rails credentials diffs be displayed in git diff:

They also shared a tip about:

πŸ“ Thinking about Code Design

πŸ“ Rafael Γ‘quila asked about handling RecordNotUnique exception:

Greg Navis replied with an article they wrote about this Build the Framework You Need and a code sample:

πŸ“ Josh Pigford asked about finding a cheaper way to categorize tools:

This seems to have been solved the following way:

πŸ“ Stephen Margheim shared a thread explaining how they implemented AcidicJobs β†’ acidic_job: Idempotent operations for Rails apps, built for ActiveJob or Sidekiq. Here are some parts of the thread:

πŸ“ Jason Swett asked about improving performance-sensitive areas of an app:

Here are some replies:

πŸ“ Gabriel Mazetto shared what the most prominent code smell in a Ruby project.

πŸ“ Michael Chaney shared a detailed post on how β€œnormalizes” works in Rails 7

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

πŸ’‘Marc asked about who uses Ruby on Rails for their side-projects:

Here are some projects shared:

πŸ’‘ BenjamΓ­n Silva H. shared a list of resources for understanding good practices or design patterns in Rails:

❀️ Why Choose Ruby

❀️ Josh Pigford shared how he wrote his web scraper in Ruby

❀️ Paul Earnden shared how they are building with Rails:

❀️ Gaurav shared about why Rails is great at building something fast:

❀️ Andrew Brown shared about why they like Rails:

❀️ Mateusz Palak published a new article about Choosing Ruby: What made me choose Ruby as my primary programming language.

🧰 Gems, Libraries, Tools and Updates

πŸ†• New Gems and Repos

πŸ†• Bozhidar Batsov announced the open-sourcing of their distributed RSpec runner - rspec-distrib

πŸ†• Tim Standen shared a new repo where they build A simple Go game made in ruby It looks like this (image shared by AndyObtiva):

🧰 Updates

🧰 Avo announced a new version of Release Release v3.9.2 · avo-hq/avo

πŸ‘€ Keep an eye on

πŸ‘€ Eileen Uchitelle submitted a PR to Ruby about:

🀝 Related (but not Ruby-specific)

🀝 Adrian Marin asked about icons:

Here are some answers:

πŸ‘‰ Deepak Mahakale shared a code sample about running long-running tasks on Heroku:

🀝 Michael Buckbee shared why Mac users should ensure .DS_Store files are listed in your .gitignore.

🀝 Pascal LalibertΓ© shared an advice for freelancers:

More content: πŸ“š πŸ—ž 🎧 πŸŽ₯ ✍🏾

πŸ—ž Newsletters

πŸ—ž Awesome Ruby published a new edition about Awesome Ruby Newsletter - Issue 422, Jun 20, 2024

πŸ—ž Ruby Weekly published a new edition about Ruby's method methodology

πŸ—ž Ruby Central published a new edition June 2024 Newsletter

πŸ—ž Hotwire Weekly published a new edition about Week 25 - Inertia.js in Rails, Stimulus in the Shadow DOM?, and more!

πŸ—ž Allison Pike published a new edition of Once a Maintainer: Mike McQuaid

🎧 Podcasts

🎧 The Rails Changelog published a new episode about 023: Solid Queue Internals with Rosa Gutierrez | The Rails Changelog | Episode 23

🎧 The Bike Shed published a new podcast about The Bike Shed: 429: Transforming Experience Into Growth

🎧 Joshua Wood published a new podcast about Dogfooding, Developers, and Discord! | FounderQuest | Episode 14

🎧 Pabs published a new podcast about On Solo-preneurship

🎧 Remote Ruby published a new episode about Auditing in Rails & Andrew's Cursed Idea

πŸ“½οΈ πŸŽ₯ Videos

Screencasts

πŸŽ₯ Julian Rubisch published a new video about Power Pack for Bullet Train - Table Filtering

πŸŽ₯ Ruby Rogues published a new video about Ruby and Rails and AI with Obie Fernandez

πŸŽ₯ Cody Norman published a new video about Generating Custom QR Code with Ruby on Rails

πŸŽ₯ Joel Drapper published a new video which gives a quick introduction to Zed for Ruby Developers

✍🏾 Articles

What’s new πŸ†•

πŸ†• Mateusz Palak published a new article about Choosing Ruby: What made me choose Ruby as my primary programming language.

πŸ†• Siddharth Shringi published a new article about Ruby 3.4 Makes β€œit” As Default Block Parameter

πŸ†• Max Chernyak published an article about Dynamic Module Snippet for Ruby

πŸ†• Svyatoslav Kryukov published an article about Inertia.js in Rails: a new era of effortless integration

πŸ†• Hexdevs published a new article about 4 Strategies To Remove Dead Code from your Ruby App

πŸ†• Samuel Williams published a new article about How WebSocket Extensions are negotiated

πŸ†• Josef Strzibny published a new article about Server provisioning options for Kamal

πŸ†• Augusts Bautra published a new article about TIL: an_array_starting_with matcher

πŸ•΅οΈ Deep-Dive

πŸ•΅οΈ RoRvsWild published a new article about Measuring Ruby Garbage Collector - RorVsWild

πŸ•΅οΈ Mathieu Eustachy published an article about In depth Ruby memory optimisation: `true`, `false` and `nil`

πŸ•΅οΈ Noel Rappin published a new article about  Better Know A Ruby Thing: On The Use of Private Methods

πŸ•΅οΈ Jared Norman published a new article about System tests haven’t failed

πŸ•΅οΈ Reza Shadman published a new article about I’m switching from Laravel to Rails

How-TOs πŸ“

πŸ“ Andres Chacon published an article about Creating a REST API with Ruby on Rails. Chapter 2: Endpoints and Serialization

πŸ“ Cody Norman published a new article about Create a QR Code with a Logo

πŸ“ Lorry Driveloper published a new article about Solving the Challenge of Connecting Stimulus Controllers Inside Shadow DOM

πŸ“ Dmitry Daw published a new article about How to use rbtrace from outside of docker container

πŸ“ Rich Steinmetz published a new article about Open-sourcing Sloth Finder to search Ruby Weekly and side projects warnings

πŸ“ Mohit Sindhwani published a new article about  Rails: Load multiple records by ID (find v where)

πŸ“ Lucian Ghinda published an article about Transactions blocks with endless methods

πŸ“ Rails Designer published an article about How to Create an Undo Action with Rails

πŸ“ Kecia karoline published an article about CodeTips#9: Readable .html.erb files on VSCode

Related

✍️ Mohit Sindhwani published a new article about Hosting HTML, JS and CSS pages simply with GitHub Pages

Reply

or to participate.