Short Ruby News - Edition #92

The one where we deep dive into frozen strings

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)

๐Ÿš€ Launches

๐Ÿš€ Stephen Margheim has listed the beta version of SQLite on Rails (affiliate link - use this if you want to support ShortRuby newsletter) on Gumroad:

๐Ÿš€ Alex Rudall is releasing his new book RailsAI - Ship your AI MVP, fast !

๐Ÿš€ Andrea Fomera launched a new project called RailsBuddy.com for pairing Rails developers together:

๐Ÿš€ Mehdi Farsi launched RubyQuiz

๐Ÿ“… Events

๐Ÿ“… Ruby Kaigi announced the dates for RubyKaigi 2025!

๐Ÿ“… Visuality announced that ticket sales for Ruby Warsaw Community Conference - Summer 2024 has started.

๐Ÿ“… Balticruby announces 30% discount on โ€œPersonalโ€ tickets

๐Ÿ“… Kevin Liebholz shared the event details for Ruby Frankfurt Meetup - Summer Edition

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ Xavier Noria warned about not deleting frozen string literal:

Jean Boussier added about the flag on CI:

Xavier Noria published a note where he details the frozen string literal and what the future holds for it. You should read it!

and later added:

๐Ÿ‘‰ Maxime Chevalier shared about Rails performance:

๐Ÿ‘‰ Satoshi Tagomori shared heโ€™d be talking about Namespace on Read a proposal for Ruby at RubyKaigi and at ใ€ŒRuby Association Activity Reportใ€ ้–‹ๅ‚ฌใฎใŠ็Ÿฅใ‚‰ใ›

๐Ÿ‘‰ Xavier Noria shared his thoughts around the naming of the new feature

๐Ÿ‘‰ Rob Zolkos shared a job from Apple where they describe that they are using Rails for Apple Music: (see job here)

Bram Jetten added:

๐Ÿ’ป Code Samples

๐Ÿ’ป Marc Kรถhlbrugge shared a Ruby script to manage Cloudflare domains

๐Ÿ’ป Collin shared a code sample on Enumerable#partition

And this is how to use the same in code:

๐Ÿ’ป  Drew Bragg shared a code sample showing stack HEREDOCs:

๐Ÿ’ป Yaroslav Shmarov shares an interesting code sample for ruby

๐Ÿ’ป Ruby On Rails shares a streamlined method to both invalidate a cache and procure a fresh token in Rails 7.1

๐Ÿ’ป John Mc Dowall shares on how you can quickly and dirtily grab a local PG database backup running as a Kamal accessory.

๐Ÿ’ป Chris Oliver shares a pro tip for rake tasks in ruby

Here is a quick example:

๐Ÿ’ป Prabin Poudel shares his learning about number_with_precision

๐Ÿ’ป Ruby Cademy suggests to take advantage of accessed_fields and after_action callback to optimize high-traffic pages.

๐Ÿ’ป  Matt Swanson asked about making a View Helper faster:

 Here are some replies:

๐Ÿ’ป  Charles Oliver Nutter shared about JVM and JRuby integration:

๐Ÿ’ป  Matt Swanson shared a code sample:

๐Ÿ’ป  Mikel Lindsaar shared a benchmark comparison from JRuby 10: Ruby 3.3 on the Modern JVM

๐Ÿ“ Thinking about Code Design

๐Ÿ“ Peter Solnica shares a benchmark on Rails vs Hanami vs Phoenix.

Adrien Poly added their stats to Peter's benchmark:

๐Ÿ“ Andrei Maxim has something to add in response to Nateโ€™s post discussed on our last edition

๐Ÿ“ Benjamรญn Silva H. explains why he thinks rails server handle more than 1.5 requests per server per vCPU:

๐Ÿ“ James Tucker shared about the performance heโ€™s getting on a single vCPU using Rails

๐Ÿ“ Joel Drapper shared his thoughts about how many requests a Ruby/Rails application can handle.

๐Ÿ“ Gavin Morrice shared his experience working on Rails applications with millions of monthly users.

๐Ÿ“  Lucian Ghinda shared a thought about supporting pattern matching in arguments :

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

๐Ÿ’ก David Heinemeier Hansson shared a zero-config alternative to tmux

๐Ÿ’ก Akshay Birajdar shared his learnings from reading the Down gemโ€™s codebase

๐Ÿ’ก Joรซl Quenneville shared tips for working with Turbo

๐Ÿ’ก David Heinemeier Hansson discusses why Kamal1 needs Traefik for gap-less deploys.

๐Ÿ’ก Piotr Ch shares why he thinks itโ€™s time for a new game-changing framework

๐Ÿ’ก Scott Watermasysk shared Hide files VS Code extension

๐Ÿ’ก Adam Mc Crea shares three intriguing thoughts on Sidekiq queues:

๐Ÿ’ก Matt Swanson shares about <bundle update --conservative GEM>

๐Ÿ’ก Andrei Kaleshka talks about why he thinks pattern matching in Ruby is amazing and how it helped him with implementing his complex business logic.

๐Ÿ’ก Ruby Cademy provides insights on what happens internally when ActiveRecord::RecordInvalid error is raised.

โค๏ธ Why Choose Ruby

โค๏ธ Spilth shares why he loves Ruby

โค๏ธ Allometry shared about what they missed in other frameworks and why they will go back in Rails:

โค๏ธ Conner says that he prefers Rails for its โ€œbatteries includedโ€ mentality

โค๏ธ Jon Yongfook speaks for a lot of us as he quotes:

โค๏ธ Jonathan Clem shared how the talks about Ruby being too slow

๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿ†• New Gems and Repos

๐Ÿ†• David Heinemeier Hansson announced a new editors supporting Markdown coming in the next 37Signal product called Workbook:

๐Ÿ†• kokuyouwind announced a new gem called rbs_goose - RBS type inferrer with LLM

๐Ÿ†• De Silva announced a new ruby gem danger-gem_changes: A Danger plugin to assist with Gemfile dependency changes.

๐Ÿ†• Masato Ohba released pbt: Property-Based Testing tool for Ruby, supporting multiple concurrency methods (Ractor, multiprocesses, multithreads).

๐Ÿงฐ Updates

๐Ÿงฐ Stanislav Katkov announced a new version of Posh TUI 0.7

๐Ÿงฐ Bozhidar Batsov shared release of RuboCop 1.64 which is out with a bunch of new features and small improvements

๐Ÿงฐ  Janko Marohniฤ‡ happily shares that the Down gem, used for Streaming downloads using Net::HTTP, http.rb or HTTPX has reached 1K stars on Github

๐Ÿงฐ Yuichiro Kaneko announced a new version of Release v1.8.0 ยท ruby/racc. racc is Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs.

๐Ÿงฐ Rรฉmy Hannequin announced a new version of Pull requests ยท rhannequin/astronoby , astronoby enables Ruby developers to compute astronomical data and events

๐Ÿงฐ Kevin Newton shared about Prism progress:

๐Ÿ‘€ Keep an eye on

๐Ÿ‘€ Hanami shared their Plans for Hanami 2.2. You are welcome to checkout the project board and contribute.

๐Ÿ‘€ Jason Fried shared a preview of the next ONCE product โ€œWorkbookโ€

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

๐Ÿค Mohammad A. Ali announced a new version of SQLite Release 3.46.0 On 2024-05-23

๐Ÿค Joshua Wood shared about inspiration:

๐Ÿค William Kennedy shared about businesses:

๐Ÿค Jose Farias shared about OOP:

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

Tomoya Ishida shared their slides Writing Weird Code

๐Ÿ—ž Newsletters

๐Ÿ—ž Ruby Central published a new edition about May 2024 Newsletter

๐Ÿ—ž Hotwire Weekly published a new edition about Week 21 - Turbo Native book update, Turbo LSP, and more!

๐Ÿ—ž Ruby Weekly published a new edition about Strings can only get better

๐Ÿ—ž Greg Molnar published a new edition of This Week in Rails about Better error message, opt-in devcontainers and more!

๐Ÿ—ž Ruby LibHunt published a new edition of Awesome Ruby newsletter - issue 418

๐ŸŽง Podcasts

๐ŸŽง Founder Quest published a new podcast about RailsConf recap with John Nunemaker

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

Screencasts

๐ŸŽฅ Dean De Hart published a new video about Idempotency in Ruby on Rails

๐ŸŽฅ Drifting Ruby published a new video about Episode 458 - Feature Toggle from Scratch

โœ๐Ÿพ Articles

Whatโ€™s new ๐Ÿ†•

๐Ÿ†• Mari Imaizumi compiled a big list of articles about RubyKaigi 2024

๐Ÿ†• Andy Croll published a new article about Railsconf Detroit 2024: A Co-chairโ€™s Perspective

๐Ÿ†• Lewis Buckley published an article about Prometheus metrics with Rails and Kamal

๐Ÿ†• Adam McCrea published an article about Planning your Sidekiq queues

๐Ÿ†• Jason Swett published a new article about Testing anti-pattern: accessing private properties

๐Ÿ†• Maciej Mensfeld published an article about From Sleep to Speed: Making Rdkafka Sync Operations 16 Times Faster

๐Ÿ†• Dr. Milan Milanoviฤ‡ published a new article about Inside Shopifyโ€™s Modular Monolith

๐Ÿ†• Maciej Mensfeld published a new article about From Sleep to Speed: Making Rdkafka Sync Operations 16 Times Faster

๐Ÿ†• Martin Streicher published an article about Five Things to Avoid in Ruby

๐Ÿ†• Joel Warrington published an article about Building a Ruby on Rails MVP

๐Ÿ†• Steven Harman published an article about On Flaky Tests, Time Precision, and Order Dependence

๐Ÿ•ต๏ธ Deep-Dive

๐Ÿ•ต๏ธ Jason Swett shared Testing anti-pattern: merged setup data - Code with Jason.

๐Ÿ•ต๏ธ Krzysztof published an article about Hanamiโ€™s place in the world of Rails

How-TOs ๐Ÿ“

๐Ÿ“ Mohammad A. Ali published a new article about Full text search for Litestack Ruby apps with Litesearch

๐Ÿ“ Akshay Khot published an article about How to Setup Rails-like Integration Tests in Ruby

๐Ÿ“ Rails Designer published an article about Communicating between Stimulus Controllers using Outlets API

๐Ÿ“ Ahmed Nadar published an article about Normalization in Rails 7.1 era

๐Ÿ“ Roland Lopez published an article about Ruby on rails Cloudflare turnstile tutorial

๐Ÿ“ Ryan Bigg published an article on Scheduling with Ice Cube and about Thought Experiment: Without React or GraphQL

๐Ÿ“ Fito Von Zastrow published an article about Extension without Modification

๐Ÿ“ Jeffery Morhous published an article about Adding views to an API-only Rails app

๐Ÿ“ Cristian Molina published an article about Basic painting with Ruby: implementing a flood-fill algorithm with DragonRuby GTK

๐Ÿ“ Garrett Gregor published an article about Fakeish

๐Ÿ“ Nithin Bekal published an article about Blocking AI bots with robots.txt in Jekyll

๐Ÿ“ Povilas Jurฤys published an article about How to use custom gems without changing the Gemfile

๐Ÿ“ Bill Tihen published an article about Rails 7.1.x - GraphDB App with AGE

Related

Reply

or to participate.