Short Ruby News - Edition #106
The one about Rails performance benchmarks, new Array#fetch_values method and Rails launched an official video series with tips and best practices.
The newsletter won't be sent for the next two Mondays. I'll be at EuRuKo (talk and workshop) and Friendly.rb (co-organizer) next week. I'll migrate the newsletter to Beehiiv for a better layout during this time. As a subscriber, you should not be affected.
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
๐ค Related (but not Ruby-specific)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters)
[Partnerย โฌ]ย SupeRails.com
๐ Hi friends, Yaro here!
After nearly 4 years and 200+ free videos on the SupeRails YouTube channel, Iโm excited to launch SupeRails.com! ๐
With a PRO subscription, youโll unlock exclusive content focused on real-world business solutions in Ruby on Rails.
Hereโs whatโs included:
๐ PRO episodes & full source code access
๐ SupeRails.com source code access
โณ Early access to new content
๐ฌ Suggest screencast topics
๐ซ No ads with a custom player
Your support helps me continue creating top-tier Ruby on Rails tutorials. ๐
Visit SupeRails.com and join the community today! ๐
๐ Launches and discounts
๐ย Ruby On Railsย launched a new series of videos about tips and best practices for Rails โ Rails in Focus
๐ย Alexandre Rubanย (pre)launched The New Authentication Generator:
๐
Events
๐ ย Friendly.Rbย sharedย an update about speakers, tickets and outdoor activities. Read the full thread here
๐ ย Ahmed Nadarย announcedย AppSignalโs Guide to Toronto
๐ All about Code and Ruby
๐ ย Takashi Kokubunย sharedย Ruby 3.3.5 Released. Read the release notes here.
๐ Charles Oliver Nutter published an article describing whatโs next for JRuby:
๐ย David Heinemeier Hanssonย announced that Solid Cache and Solid Queue are set as default for Rails 8: ย
๐ป Code Samples
๏ธ๏ธ๐ปย Xavier Noriaย sharedย about Ruby not having a syntax for types:
๏ธ๐ปย Kevin Newtonย sharedย about Ruby grammar:
๏ธ๐ปย Matt Swansonย sharedย a code sample about implementing rate limiting in Rails 7.2:
๐ป Remi Mercierย sharedย a code sample showing how they implemented chainable scopes:
๏ธ๐ปย Igor Alexandrovย shared a simple quiz about Ruby false values: ย
I suspect you already know the answer, but if you need to see it, it is here or directly in the Ruby documentation
๏ธ๐ปย Vincent Roleaย sharedย how they built dialogs:
๏ธ๐ปย Ruby Cademyย sharedย how they implemented an OOP-style contract interface:
๏ธ๐ปย Fabianย sharedย about manually associate records in Rails:
๏ธ๐ปย Ruby Cademyย sharedย about using Array#none:
๏ธ๐ปย Greg Molnarย sharedย a code sample about creating a new rails app from main:
๏ธ๐ปย Alazycoderย sharedย about a rake task to check migrations:
๏ธ๐ปย Andrea Fomeraย sharedย a code sample about organizing Rails routes:
๏ธ๐ปย Joel Drapperย sharedย they build only for documentation purposes a mini-version of Phlex:
๏ธ๐ปย Seth Horsleyย sharedย a code sample about using defined? to check for a dependency:
๏ธย ๐ป Jean Boussierย sharedย a thread about hash access:
๏ธ๐ปย Ruby Cademyย sharedย about using Active Record connection_pool.stat
๏ธ๐ปย Ross Kaffenbergerย sharedย a code sample about mixing Phlex with ERB:
๏ธ๐ปย Ruby Cademyย sharedย about using Rails extract_options! method:
๏ธ๐ปย Josef Strzibnyย sharedย a code sample about using EXPLAIN ANALYZE from Rails:
๏ธ๐ปย Oli Nelsonย sharedย a code sample about using Sinatra to server static web server:
๐ Thinking about Code Design
๏ธ๐ย Jorge Manrubiaย sharedย about system tests and running CI locally:
๏ธ๐ย Igor Alexandrovย recommended usingย annotate_models gem to make it simpler for AI to understand Rails models:
๏ธ๏ธ๐ย Nate Berkopecย sharedย about connection pool size:
๏ธ๐ย Jess Brownย asked about morphing and scroll preserve:
Konnor Rogersย sharedย a possible solution:
๏ธ๐ย Samuel Williamsย sharedย about making WebSockets proxy work between HTTP/1 and HTTP/2 for Falcon:
๏ธ๐ย Marc Kรถhlbruggeย sharedย about memory usage drop off after enabling Jemalloc for their Rails app:
๏ธ๐ย Jeremy Smithย asked about building notifications for their new project:
Among many answers received,ย Stephen Margheimย sharedย a gist detailing an analysis:
๏ธ๐ย Landon Grayย asked about what vector DB are used by Rails shops:
Here are some answers:
faiss-ruby, storing on S3/GCS
pg_vector
Mongo Atlas Vector
Pinecone
๏ธ๐ย Jared Normanย asked about RSpec or Minitest:
There are a lot of answers there; here is a short selection of some of them:
๐ก Around code (news, findings, books, and more - all about Ruby)
๐กย Nick Schwadererย sharedย a thread about how RubyGems web page evolved with time:
๐กย Juraj Kostolanskรฝย sharedย that they cannot use Rails in a domain name:
๐กย David Heinemeier Hanssonย sharedย this performance benchmark:
This post triggered some people outside the Ruby and Rails community, and then some people from the community responded. Here is a selection of replies:
๐กย Alex Rudallย sharedย they reached 73 Ruby/Rails companies on their open repo:
โค๏ธ Why Choose Ruby and Rails
โค๏ธ Pierre Adrienย sharedย about using Sinatra:
โค๏ธย Chris Kottomย sharedย about how Ruby is easy to read:
โค๏ธย Donn Felkerย sharedย about rewriting an app from React and Node to Rails:
โค๏ธย J Clarkeย sharedย about building startups with Rails:
๐งฐ Gems, Libraries, Tools and Updates
๐ New Gems and Repos
๐ Paweล Urbanek published a new gem called pg-locks-monitor - A simple tool to observe PostgreSQL database locks in Rails apps
๐งฐ Updates
๐งฐ Avoย announced a new version about v3.12.0 - DateTime filter, new custom components and many Dynamic Filters improvements
๐งฐย Joel Drapperย announced thatย Phlex 2.0 alpha is ready for testing ๐๏ธ ยท phlex-ruby ยท Discussion #769 ยท GitHub
๐งฐย Josef Strzibnyย announced a new version ofย Release v0.8.0 ยท wmlele/devise-otp ยท GitHub
๐งฐ Zacharias Knudsen merged a PR to Railsย Add support for SQLite3 full-text-search and other virtual tables by zachasme ยท Pull Request #52354
๐งฐย Greg Navisย announced a new version ofย active_record_doctor with Drop support for Active Record 6.0 and older (#183) ยท gregnavis/active_record_doctor@778178e ยท GitHub
๐งฐย Nate Berkopecย announced a new version ofย benchmark-ips โ Release 2.14 Akagi ยท evanphx/benchmark-ips
๐งฐย Akira Matsudaย announced a new version ofย simplecov-html
๐ Keep an eye on
๐ Ruby Dev Meeting happened on 5th September. See the meeting log here. Here are some parts of the meeting:
๐ค Related (but not Ruby-specific)
๐ค๏ธย Andrey Sitnikย sharedย they updated the favicon guideย How to Favicon in 2024: Six files that fit most needs
๐คย Uncle Bob Martinย sharedย a thread about benefits of OOP:
๐คย Nate Berkopecย sharedย about autoscaling based on CPU for background jobs:
๐คย Adrian Marinย sharedย about adding the email to Github profile:
๐คย Guillermo Rauchย sharedย
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ
Kevin Newtonย shared their slides aboutย Why Prism?
๐ Newsletters
๐ย Ruby On Railsย published a new edition aboutย Ruby on Rails — Solid Cache and Queue as default backends and more
๐ย Hotwire Weeklyย published a new edition aboutย Week 36 - Lazy-load Turbo Frames early, Turbo Laravel Morphing Support, and more!
๐ Ruby Weekly published a new edition about Real-time Ruby profiling
๐ Awesome Ruby Newsletter published a new edition Issue 433 - Say No To Partials And Helpers For A Maintainable Rails Front-End
๐ง Podcasts
๐ง Jeremy Smithย published a new video aboutย Week 5 - Riffing on Topic Subscriptions
๐งย Ode To Rails Confย published a new podcast aboutย Nadia Odunayo
๐งย John Nunemakerย published a new podcast about Pricing
๐งย Indie Railsย published a new podcast aboutย Job Boarding with Jason Charnes
๐งย Thoughtbotย published a new podcast aboutย The Bike Shed: 438: Writing abstractions in tests
๐งย Luca Rossiย published a new podcast with David Heinemeier Hansson
๐ง Remote Ruby published a new podcast about Andrew is Triggered by Jason Cs JSON B Columns
๐ฝ๏ธ ๐ฅ Videos
๐ฅ Evil Martiansย published a new video aboutย SF Bay Area Ruby Meetup #6 at GitHub on September 3
๐ฅย Yaroslav Shmarovย published a new video aboutย Build an international company search engine
๐ฅย Drifting Rubyย published a new video aboutย Ruby or Rails
๐ฅย Josh Pigfordย published a new video aboutย Rails multi-app servers with Hetzner, Digital Ocean and Hatchbox
โ๐พ Articles
Whatโs new ๐
๐ Adam McCrea published an article aboutย Say No To Partials And Helpers For A Maintainable Rails Front-End
๐ Charles Oliver Nutter published an article aboutย JRuby: Upcoming Projects โ Charles Oliver Nutter โ Java, Ruby, and JVM guy trying to make sense of it all
๐ย Zeke Gabrielse published a new article aboutย Licensing is packaging
๐ Bill Tihenย published an article aboutย Ruby 3.x - Lazy Evaluation, prioritized algorithms
๐ Ruby Centralย published an article aboutย Ruby Central Welcomes Marty Haught as Interim Lead for RubyGems and Bundler
๐ย Julian Rubisch published a new article aboutย Betterstimulus | Targetless Controllers
๐ Rails Designerย published an article aboutย Refactor Stimulus.js Controllers to Use Change Callbacks
๐ Jonathan Greenberg published an article aboutย How Can You Do it? Well, It Prepends...
๐ Brandon Weaverย published a series of articles aboutย Letโs Read โ Eloquent Ruby โ Ch 7, Letโs Read โ Eloquent Ruby โ Ch 8, Letโs Read โ Eloquent Ruby โ Ch 9 and aboutย Letโs Read - Eloquent Ruby - Ch 10
๐ย Carlos Pohlod published an article aboutย Understanding complex Rails projects โ Ruby on rails stack trace made easy
๐ Kevin Sylvestre published a new article about Using OmniAI to Convert PDFs to Markdown with LLMs
๐ Prasanth Chaduvula published an article aboutย Rails 7.1 Adds *_deliver Callbacks To ActionMailer
How-TOs ๐
๐ Lawrence Gripperย published a new article about sharedย ย Beautiful, Short, IDs in GraphQL (or other things) with SQIDs
๐ Akshay Khotย published an article aboutย Routing Concerns in Rails
๐ Luigi Antonio Guillenย published an article aboutย Ruby Debugging, VS Code, Gems, and Bundler!
๐ Hugo Vastย published an article about Effortless Feature Management in Rails : A Guide to Using Flipper with Active Admin
๐ Luigi Antonio Guillenย published an article aboutย How to Install Ruby on Windows, macOS, and Linux
๐ JT Dev published an article about Working with LLMs in Ruby on Rails: A Simple Guide
๐ Edvardas Baravykas published an article aboutย Ruby on Rails Boilerplate: Vite, Tailwind, Stimulus
๐ Vijay Vinod published an article aboutย Upgrade Ruby using dual boot
๐ Radan Skoricย published an article aboutย How to load a lazy loaded turbo frame a bit before it scrolls into view
๐ Rails Designerย published an article aboutย Building Nested Forms in Rails with Stimulus
Related
Sara Soueidan published a new article aboutย Should form labels be wrapped or separate?