

Discover more from Short Ruby Newsletter
Short Ruby News - Edition #62
Discover the world of Ruby in this comprehensive newsletter covering week 39 of 2023. Find code samples, community updates, gems, resources, and thought-provoking discussions.
Please consider becoming a paid subscriber to support this newsletter for just $1.8/week ($7.5/month), and you will receive an ad-free version. Your contribution aids growth and maintains the quality of ShortRuby for everybody
You can jump directly to a section:
๐ New Products & ๐ Events
๐งฐย Gems, Libraries, and Updates
๐ค Related (but not Ruby-specific)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters)
๐ New Products
๐ Marco Rothย announced at RailsWorld a wide range of improvements for Hotwire and launched hotwire.io:

๐ย Brad Gesslerย launched their new productย tinyzap.com

๐ย Greg Molnarย announced their book is available to buyย Secure code review for Rails Developers
๐ย Landon Gray (He/Him)ย announced a new community Ruby AI on Twitter:

๐ Events
This conference season started with Wroclove.rb in Wroclaw followed by Euruko in Vilnius, and continued with Friendly.rb in Bucharest (see photos from the event here).
This week we had 3 conferences running at the same time:
Rails World in Amsterdam - see more pictures and insights at #RailsWorld@twitter (nitter link) , #RailsWorld@ruby.social


RubyConf Thailand - see more pictures and insights at #rubyconfth@twitter (nitter link), #rubyconfth@ruby.social


Rocky Mountain Ruby Conference - see more pictures and insights at rmrubyconf@twitter (nitter link), #rockymtnruby@ruby.social


๐ ย North West Ruby User Groupย announced their new meetingย Get tickets โ North West Ruby User Group's October Meeting

๐ Brighton Ruby Conferenceย announced early bird tickets available atย ย Brighton Ruby Conference:

๐ ย Rubyday | 16th June | Veronaย announced early bird tickets open at RubyDay Tickets and CFP open atย rubyday 2024: Call for Papers

๐ ย Inaoย sharedย that timetable for Oedo conference ๅคงๆฑๆธRubyไผ่ญฐ10 is published:
๐ All about Code and Ruby
๐ Xavier Noriaย sharedย that it is never too late to learn programming:
๐ David Terenย also shared their story:

๐ย Emmanuel Hayfordย announced the Rails Youtube channel where videos from RailsWorld will be published โย Ruby on Rails
๐ Marc Busquรฉย sharedย a code sample showing that String#[]

Some additional replies showing other use cases:


๐ Paul Mucurย sharedย about setting Cache-Control on public files:

๐ Kasper Timm Hansenย sharedย a code sample showing how to use their gemย active_job-performs

๐ย Samuel Williamsย sharedย a screenshot from a small game implemented at their repo where they show how to use Falcon as a web server with Rails (see falcon-rails-example)
๐ย Juraj Kostolanskรฝย sharedย a Stimulus controller that implements an around action for a Turbo Stream event:

๐ David Aldridgeย sharedย a code sample about PostgreSQL partitioning:

If you like this newsletter and get value from reading it, please consider becoming a paid subscriber to support for just $1.8/week ($7.5/month), and you will receive an ad-free version. Your contribution aids growth and maintains the quality of ShortRuby for everybody:
๐ย Ruby Cademyย sharedย a Rails tip for creating direct URLs:
๐ย Emmanuel Hayfordย sharedย that Rails 7.1 checkbox will respected the checked option:
๐ย Josef Strzibnyย sharedย a code sample showing how to add slugs and UUIDs to a rails model:

๐ย Robby Russellย asked about how is hiring Rails developers and received some good replies (nitter alternative):

Here are some replies:
๐ย Brad Gesslerย sharedย code sample from how to work with select from their project rubymonolith/superform: Build highly customizable forms in Rails

๐ย Josef Strzibnyย sharedย a code sample showing Rails helpers for updating a counter:

๐ย Mike Coutermarshย sharedย that Rails 7.1 is fixing the long index name error:
๐ย Yaroslav Shmarovย sharedย a screenshot from RailsWorld that summarisez the direction of rails:

๐ย Stanislav Katkovย sharedย a screenshot from Flavor presentation where they share that Rails 7.1 now has HTML5 sanitizer support:
๐ย Kyle Daigleย sharedย why they like Rails:
๐ย Tobi Lutkeย talked about how Rails influenced other web frameworks:
๐ย Josรฉ Valimย sharedย a thread about one person framework (open the post to see the entire text, I cut here just the first part):

๐ย Jason Mellerย sharedย they are already running Rails 7.1 in production:
๐ย Drazenย asked if anyone is building something with Ruby and AI:
๐ Josef Strzibnyย sharedย a code sample about configuring disk service in Rails:

๐งฐ Gems, Libraries, Tools and Updates
๐งฐ Rails announced the release of Rails 7.1 during Rails World conference:
๐งฐ Tim Riley announced a new release of Hanami version 2.1.0.beta2 (see source diff here):
๐ ๐งฐ Donal McBreen launched solid_cache - A database-backed ActiveSupport::Cache::Store
๐งฐย Alberto Fernรกndez-Capelย opened a PR at hotwire/turbo aboutย Page refreshes by afcapel ยท Pull Request #1019 ยท hotwired/turbo
๐ ๐งฐ Marco Roth published a new extension for VSCode - Stimulus LSP - Intelligent Stimulus tooling for Visual Studio Code
๐ ๐งฐ Dima Fatkoย published a new gem columns_trace - Detect unnecessary selected database columns
He also recommended to read the following article:ย Reasons Why Select * Is Bad For SQL Performance
๐งฐ Tiago Cardoso announced the release of version 1.0 of httpx - An HTTP client library for ruby
๐ ๐งฐ Justin Searls and Aaron Patterson announced a new testing framework called TLDR - A Ruby test framework for people who don't have time for slow tests
Justin published an article explaining the reasons behind the decision of running tests in 1.8 seconds
๐ ๐งฐ Samuel Williamsย announced a demo repository where they show a Web Socker in Rails 7.1 running via Falcon web server falcon-rails-example/app/controllers/chat_controller.rb at 51536cab600017eadcf64f9733259058fa8828c9 ยท socketry/falcon-rails-example:
๐ ๐งฐย Modern Railsย shared a repo they created to play with solid cache over SQLite โย codergeek121/solid_cache_demo: Small demo app with solid_cache sqlite setup

๐งฐย Nate Hopkinsย shared a draft where they explore toย Add ability to drive Commands from a Stimulus controller by hopsoft ยท Pull Request #106 ยท hopsoft/turbo_boost-commands
๐ ๐งฐย Brad Gesslerย announced a new gemย NoCheckout is the smallest possible Stripe integration
๐งฐย Julian Rubischย announced they refactored their PR for Hotwire aboutย Add MutationObserver to Turbo Drive Preloader by julianrubisch ยท Pull Request #911 ยท hotwired/turbo
๐งฐย Nick Janetakisย announced they updated their repoย docker-rails-example: A production ready example Rails app that's using Docker and Docker Compose.

๐งฐย Tim Morganย announced a PR for natalie-lang aboutย Add experimental support for the common Ruby idiom `$LOAD_PATH << stuff` by seven1m ยท Pull Request #1299 ยท natalie-lang/natalie
๐ ๐งฐย Jesper Christiansenย announced a new repository atย jespr/rails-emoji-generator: A simple Ruby on Rails app that uses replicate to create Apple style emojis
๐งฐย Lรกzaro Nixonย announcedย Release v3.0.0 ยท lazaronixon/authentication-zero

๐งฐย Nick Janetakisย sharedย GitHub - nickjj/docker-rails-example: A production ready example Rails app that's using Docker and Docker Compose
๐ค Related (but not Ruby-specific)
๐ค Joel Drapperย sharedย about using GPT to name things:

๐คย Tony Dinh sharedย about being consistent in their work:
๐คย Paul Grahamย sharedย about what startup ideas to pick:
๐คย Nate Hopkinsย sharedย about working smarter not harder:
๐คย Tim Morganย shared about โI donโt knowโ as a powerful start of learning journey:
ย ๐คย Hassan Zahirniaย sharedย a Tailwind CSS trick:

More content: ๐ ๐ ๐ง ๐ฅ โ๐พ
๐ Newsletters
๐ Ruby Weekly published a new edition It's a Rails (7.1) World
๐ย Awesome Ruby Newsletter published a new edition Issue 385 - Writing Object Shape friendly code in Ruby
๐ Ruby Radar published a new edition aboutย From Amsterdam With Love
๐ง Podcasts
๐งย The Ruby on Rails Podcast published a new episode aboutย Ruby On Rails As A Career Choice With Olly Headeyย
๐ง Maintainable Software Podcast published a new episode about Dave Bryant Copeland Quantifying The Carrying Cost
๐ง Lucas Barret published a new episode about Gem Ruby Show : Julian Rubisch, Cable Ready
๐งย Code And The Coding Coders Who Code Itย published a new podcast aboutย Episode 29 - Ben Orenstein
๐งย Indie Railsย published a new podcast aboutย Managing Yourself - Tips and advice for managing being indie longterm | IndieRails | Episode 18
๐งย Ruby For Allย published a new podcast aboutย Welcome back! | Ruby for All | Episode 46
๐ฝ๏ธ ๐ฅ Videos
Screencasts
๐ฅ Sebastian Wilgosz published a new episode aboutย Registry Pattern In Hanami Apps
๐ฅ GoRails published a video aboutย Health Check Endpoint In Rails 7.1 (Example)
๐ฅ Dave Kimura published a video aboutย Embedding Stripe Checkout
๐ฅ Dean DeHart published two videos aboutย Revise Auth Gem In Ruby On Rails 7 and aboutย GPT Turbo To Audio: Real Time Answers With Rails 7
๐ฅย Thoughtbotย published a new video aboutย The final push to Rails 7
โ๐พ Articles
Whatโs new ๐
Victor Shepelevย published an article aboutย That Useless Ruby Syntax Sugar That Emerged In New Versionsย โ โWhat I feel as an interesting mind exercise, though, is providing a thought framework of looking at the new syntaxes and language features to understand what are their causes, reasoning, and consequencesโ
Ruby Central published an article aboutย See The Full Line Up: Ruby Conf 2023 Announces 2023 Speakersย โ โThis yearโs keynote speakers represent some of the values we strive to promote in the Ruby community; like continuous learning, inclusion, collaboration and empathyโ
Donal McBreen published an article about Solid Cacheย โ โSolid Cache uses a SQL database as its cache store. We get a much larger cache at a fraction of the storage costs of memory caches like Redis or Memcached. For us, thatโs a cache size of months rather than daysโ
Adrian Marin published an article aboutย The 2023 Ruby Conference Season Is (Almost) Overย โ โI call it a Conference season because we just had 6 Ruby conferences in four consecutive weeks on three continents. And that's wild! This is just a testament to how vibrant and healthy the Ruby community really isโ
Paweล ลwiฤ tkowski published an article aboutย On Using Phlex โ โSeb Wilgosz recently published an article Phlex with Hanami on Hanami Mastery. It made the latest Ruby Weekly issue as the first item and generally was quite well received. I write this post as an addendum to Sebโs article, giving my perspective on using Phlex in Ruby applicationsโ
Kemal Akkoyun & Javier Honduvilla Coto published an article aboutย Profiling Python And Ruby Using eBPFย โ โ In our continued efforts to expand and improve your profiling experience, we are excited to announce new additions to our language support: Ruby and Pythonโ
Karol Galanciak published an article aboutย Integration Patterns For Distributed Architecture Intro To Kafkaย โ โThe good news is that we have many tools available that we could add to our Ruby on Rails applications to make them work with Kafka. And there is even better news - one of these tools is a clear winner - Karafkaโ
Chad Pytel published an article aboutย Running Old Ruby Versions On Apple Silicon By Fully Emulating X86 64ย โ โIf you find yourself in a situation where you need to run an older version of Ruby on Apple Silicon, this might be a solution for youโ
Navaneeth D published an article aboutย Rails 7.1 Adds Support For Multi Column Ordering In Active Record/Batchesย โ โIn Rails 7.1, an enhancement has been introduced to ActiveRecord::Batches methods, related to models with composite primary keys. This update allows developers to specify ascending or descending order for each key within a composite primary keyโ
Deep Dives ๐
Akshay Khot published an article aboutย Refactoring: Improving The Design Of Existing Code (My Notes And Highlights)ย โ โWhat follows are not my thoughts, opinions and interpretations, but just a copy + paste of my notes and highlights taken straight from the bookโ
Cherry Ramatis published an article aboutย Pattern Matching Dealing With The If Statement Nightmareย โ โI think we all faced(or wrote) that 20 lines of if statements to check a single variable in all the possibilities, and I think we all suffered to add one more statement to that function leaving it even more unreadable. Well, on this article we'll see a better way in my opinion called pattern matching, essentially we'll learn how to use switch cases with steroidsโ
How-Tos ๐
Peter Berkenbosch published an article aboutย Getting Started With Solidus And A Custom Tailwind CSS Frontendย โ โThis first article is the setup and getting Solidus up and running for you locallyโ
Aestimo Kirina published an article aboutย Using Action Policy For A Ruby On Rails App: The Basicsย โ โIn this two-part series, we'll take a deep dive into using the Action Policy gem for a Ruby on Rails blog application. In this part, we'll cover the basics of Action Policyโ
Rishi Jain published an article aboutย Dealing With Schema Changes In Rails 7 โ โWhen you upgrade a Rails application from Rails 6.1 to 7.0, you may suddenly see a lot of changes in the schema.rb file and wonder where those changes come from and how to deal with them. In this post, we look at what those changes are, and how to deal with them when upgrading a Rails applicationโ
Matt Brictson published an article aboutย Bundler 2.4.20 Understands .Ruby Versionย Filesย โ โYou can now DRY up your Ruby version declarations with Bundlerโs new Gemfile syntaxโ
Randy Stauner published an article aboutย Enabling Bootsnap In Truffle Rubyย โ โEager loading the app with a native build of the latest TruffleRuby commit on a development cloud instance was taking as long as 134 seconds. By simply enabling Bootsnap it finishes in under 122 seconds (consistently about 10% faster)โ
Dennis Martinez published an article aboutย Distributing Docker Images For Rails Apps With Git Hub Actionsย โ โLearn how to automatically build and distribute Docker images for your Rails apps and streamline your development, testing, and deployment workflowsโ
๐ Related
Jonas Downeyย published an article aboutย Why side projects are essential for creativesโand employers should embrace them
Rรฉmy Hannequinย published a new article aboutย โI have a bad English accentโ
Daniel Terhorst North published a new article aboutย McKinsey Developer Productivity Review
Please consider becoming a paid subscriber to support this newsletter for just $1.8/week ($7.5/month), and you will receive an ad-free version. Your contribution aids growth and maintains the quality of ShortRuby for everybody:
If you consider upgrading and want more information, please read Why to subscribe to paid.