- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #92
Short Ruby News - Edition #92
The one where we deep dive into frozen strings
You can jump directly to a section:
๐ 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)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters)
๐ 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ใ ้ๅฌใฎใ็ฅใใ
๐ Yukihiro Matz shared "Namespace on read" for Ruby, FAQ
๐ 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).
๐ Lewis Buckley shared a repo kamal-prometheus-example: An example Rails app demonstrating using Prometheus metrics with Kamal
๐งฐ Updates
๐งฐ David Heinemeier Hansson announced a new version of Release v0.9.0 ยท rails/propshaft and it is now the default in Rails 8
๐งฐ Stanislav Katkov announced a new version of Posh TUI 0.7
๐งฐ Mohammad A. Ali announced a new version of litestack - Litestack is a Ruby gem that provides both Ruby and Ruby on Rails applications an all-in-one solution for web application data infrastructure.
๐งฐ 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
๐งฐ Mike Dalessio announced a new version of Release 2.0.2 / 2024-05-23 ยท sparklemotion/sqlite3-ruby
๐งฐ Jeremy Evans announced a new version of ruby-warning 1.4.0 Released ยท jeremyevans ruby-warning ยท Discussion #23
๐งฐ 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
Charles Oliver Nutter shared their slides JRuby 10: Ruby 3.3 on the Modern JVM
๐ 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
๐ง The Ruby On Rails Podcast published Episode 516: Catching Up On The Rails Foundation with Amanda Perino
๐ง Andrew Atkinson published a new podcast about Speaker: Andrew Atkinson | POSETTE: An Event for Postgres 2024
๐ง Aaron Francis published a new podcast David Heinemeier Hansson | High Performance SQLite
๐ฝ๏ธ ๐ฅ Videos
Screencasts
๐ฅ Jason Swett published a new video about Refactoring RSpec Request Specs to be More Understandable - Mentorship Session with Yain Porter and about How Do We Write Tests for Job Streaming? and about Changing How Build/Job Navigation Works - Live Coding on SaturnCI
๐ฅ Yaroslav Shmarov published a new video about Tailwind on Rails #168 Mobile footer navigation
๐ฅ Dean De Hart published a new video about Idempotency in Ruby on Rails
๐ฅ Irina Nazarova published a new video about SF Bay Area Ruby Meetup, March 2024: Ben Sheldon, Marco Roth, Daniel Farina, Vladimir Dementyev
๐ฅ 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
๐ Jared White published an article about Expressive Class Hierarchies through Dynamically-Instantiated Support Objects.
๐ Steven Harman shared his blog On Flaky Tests, Time Precision, and Order Dependence.
๐ Maciej Mensfeld published a new article about From Sleep to Speed: Making Rdkafka Sync Operations 16 Times Faster
๐ Aki published a new article RubyKaigi 2024 - From LALR to IELR: A Lrama's Next Step (Day3)
๐ Martin Streicher published an article about Five Things to Avoid in Ruby
๐ Prasanth Chaduvula published an article about Strict Loading Using :n_plus_one_only Mode Does Not Eagerly Load Child Associations In Rails 7.2
๐ 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
Reply