Short Ruby Newsletter

Share this post

Short Ruby News - Edition #62

newsletter.shortruby.com

Discover more from Short Ruby Newsletter

A Monday summary of the articles, discussions, and news from the Ruby community
Over 4,000 subscribers
Continue reading
Sign in

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.

Lucian Ghinda (from ShortRuby)
Oct 9, 2023
Share this post

Short Ruby News - Edition #62

newsletter.shortruby.com
Share
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

Support the newsletter for 1.8$/week

You can jump directly to a section:

๐Ÿš€ New Products & ๐Ÿ“… Events

๐Ÿ‘‰ย All about Code and Ruby

๐Ÿงฐย 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:

Source:ย @marcoroth@ruby.social

๐Ÿš€ย Brad Gesslerย launched their new productย tinyzap.com

Source:ย @bradgesslerย (read onย nitter)

๐Ÿš€ย Greg Molnarย announced their book is available to buyย Secure code review for Rails Developers

Source: https://greg.molnar.io/books/secure-code-review-for-rails-developers

๐Ÿš€ย Landon Gray (He/Him)ย announced a new community Ruby AI on Twitter:

Source:ย @thedayisntgrayย (read onย nitter)

๐Ÿ“… 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

Rails World

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

Ruby Conf Thailand

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

Rocky Mountain Ruby Conference

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

Source:ย @NWRUG@ruby.social

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

Source:ย @brightonruby@ruby.social

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

Source:ย @rubydayitย (read onย nitter)

๐Ÿ“…ย Inaoย sharedย that timetable for Oedo conference ๅคงๆฑŸๆˆธRubyไผš่ญฐ10 is published:

Source:ย @inaoย (read onย nitter)

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ Xavier Noriaย sharedย that it is never too late to learn programming:

Source:ย @fxnย (read onย nitter)

๐Ÿ‘‰ David Terenย also shared their story:

Source:ย @davidterenย (read onย nitter)

Upgrade to paid


๐Ÿ‘‰ย Emmanuel Hayfordย announced the Rails Youtube channel where videos from RailsWorld will be published โ†’ย Ruby on Rails

Source:ย @siaw23ย (read onย nitter)

๐Ÿ‘‰ Marc Busquรฉย sharedย a code sample showing that String#[]

Source:ย @waiting_for_dev@ruby.social

Some additional replies showing other use cases:

Source:ย @threedaymonk@ruby.social
Source:ย @fnordfish@ruby.social

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

Source:ย @mudge@ruby.social

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

Source:ย @kaspth@ruby.social

๐Ÿ‘‰ย 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)

Source:ย @ioquatixย (read onย nitter)

๐Ÿ‘‰ย Juraj Kostolanskรฝย sharedย a Stimulus controller that implements an around action for a Turbo Stream event:

Source:ย @jkostolanskyย (read onย nitter)

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

Source:ย @slimdave@ruby.social
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:

Support the newsletter for 1.8$/week


๐Ÿ‘‰ย Ruby Cademyย sharedย  a Rails tip for creating direct URLs:

๐Ÿ‘‰ย Emmanuel Hayfordย sharedย that Rails 7.1 checkbox will respected the checked option:

Source:ย @siaw23ย (read onย nitter)

๐Ÿ‘‰ย Josef Strzibnyย sharedย a code sample showing how to add slugs and UUIDs to a rails model:

Source:ย @strzibnyjย (read onย nitter)

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

Source:ย @robbyrussellย (read onย nitter)

Here are some replies:

  • Arrows

  • Figma

  • Scholarly

  • Nikola Motor

  • Github

  • Sequra

  • DoctoLib

  • Unidy

  • Clear Code Wizards

  • Whop

  • ioki.mobility

  • Coinlist

  • HakerOne

  • Ophelos

  • ezCater

  • Y Combinator

  • Mallow Tech

  • Circle

  • Coupa

  • Monami

  • rompslomp

  • Yozu

  • Triumph Financial

  • Meister

๐Ÿ‘‰ย Brad Gesslerย sharedย code sample from how to work with select from their project rubymonolith/superform: Build highly customizable forms in Rails

Source:ย @bradgesslerย (read onย nitter)

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

Source:ย @strzibnyjย (read onย nitter)

๐Ÿ‘‰ย Mike Coutermarshย sharedย that Rails 7.1 is fixing the long index name error:

Source:ย @msccccย (read onย nitter)

๐Ÿ‘‰ย Yaroslav Shmarovย sharedย a screenshot from RailsWorld that summarisez the direction of rails:

Source:ย @yarotheslavย (read onย nitter)

๐Ÿ‘‰ย Stanislav Katkovย sharedย a screenshot from Flavor presentation where they share that Rails 7.1 now has HTML5 sanitizer support:

Source:ย @5katkovย (read onย nitter)

๐Ÿ‘‰ย Kyle Daigleย sharedย why they like Rails:

Source:ย @kdaigleย (read onย nitter)

๐Ÿ‘‰ย Tobi Lutkeย talked about how Rails influenced other web frameworks:

Source:ย @tobiย (read onย nitter)

๐Ÿ‘‰ย Josรฉ Valimย sharedย a thread about one person framework (open the post to see the entire text, I cut here just the first part):

Source:ย @josevalimย (read onย nitter)

๐Ÿ‘‰ย Jason Mellerย sharedย they are already running Rails 7.1 in production:

Source:ย @jmellerย (read onย nitter)

๐Ÿ‘‰ย Drazenย asked if anyone is building something with Ruby and AI:

Source:ย @drale2kย (read onย nitter)

๐Ÿ‘‰ Josef Strzibnyย sharedย a code sample about configuring disk service in Rails:

Source:ย @strzibnyjย (read onย nitter)

๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿงฐ Rails announced the release of Rails 7.1 during Rails World conference:

Source: https://rubyonrails.org/2023/10/5/Rails-7-1-0-has-been-released

๐Ÿงฐ Tim Riley announced a new release of Hanami version 2.1.0.beta2 (see source diff here):

Source: https://hanamirb.org/blog/2023/10/04/hanami-210beta2/

๐Ÿ†• ๐Ÿงฐ Donal McBreen launched solid_cache - A database-backed ActiveSupport::Cache::Store

Source: https://github.com/rails/solid_cache

๐Ÿงฐย Alberto Fernรกndez-Capelย opened a PR at hotwire/turbo aboutย Page refreshes by afcapel ยท Pull Request #1019 ยท hotwired/turbo

Source: https://github.com/hotwired/turbo/pull/1019

๐Ÿ†• ๐Ÿงฐ Marco Roth published a new extension for VSCode - Stimulus LSP - Intelligent Stimulus tooling for Visual Studio Code

Source: https://hotwire.io/ecosystem/tooling/stimulus-lsp

๐Ÿ†• ๐Ÿงฐ Dima Fatkoย published a new gem columns_trace - Detect unnecessary selected database columns

Source: https://github.com/fatkodima/columns_trace

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

Source: https://gitlab.com/os85/httpx/-/blob/master/doc/release_notes/1_0_0.md

๐Ÿ†• ๐Ÿงฐ 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

Source: https://github.com/tendersearls/tldr

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

Source:ย @ModernRailsย (read onย nitter)

๐Ÿงฐย 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

Source: https://github.com/hopsoft/turbo_boost-commands/pull/106

๐Ÿ†• ๐Ÿงฐย Brad Gesslerย announced a new gemย NoCheckout is the smallest possible Stripe integration

Source: https://github.com/rubymonolith/nocheckout#create-user-record-after-checkout-is-complete

๐Ÿงฐย Julian Rubischย announced they refactored their PR for Hotwire aboutย Add MutationObserver to Turbo Drive Preloader by julianrubisch ยท Pull Request #911 ยท hotwired/turbo

Source: https://github.com/hotwired/turbo/pull/911

๐Ÿงฐย Nick Janetakisย announced they updated their repoย docker-rails-example: A production ready example Rails app that's using Docker and Docker Compose.

Source:ย @nickjanetakisย (read onย nitter)

๐Ÿงฐย 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

Source: https://github.com/natalie-lang/natalie/pull/1299

๐Ÿ†• ๐Ÿงฐย 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

Source:ย @jesprย (read onย nitter)

๐Ÿงฐย Lรกzaro Nixonย announcedย Release v3.0.0 ยท lazaronixon/authentication-zero

Source:ย @lazaronixonย (read onย nitter)

๐Ÿงฐย Nick Janetakisย sharedย GitHub - nickjj/docker-rails-example: A production ready example Rails app that's using Docker and Docker Compose

Source: https://github.com/nickjj/docker-rails-example

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

๐Ÿค Joel Drapperย sharedย about using GPT to name things:

Source:ย @joeldrapper@ruby.social

๐Ÿคย Tony Dinh sharedย about being consistent in their work:

Source:ย @tdinh_meย (read onย nitter)

๐Ÿคย Paul Grahamย sharedย about what startup ideas to pick:

Source:ย @paulgย (read onย nitter)

๐Ÿคย Nate Hopkinsย sharedย about working smarter not harder:

Source:ย @hopsoftย (read onย nitter)

๐Ÿคย Tim Morganย shared about โ€œI donโ€™t knowโ€ as a powerful start of learning journey:

Source:ย @timmrgnย (read onย nitter)

ย ๐Ÿคย Hassan Zahirniaย sharedย a Tailwind CSS trick:

Source:ย @HassanZahirniaย (read onย nitter)

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:

Support the newsletter for 1.8$/week

If you consider upgrading and want more information, please read Why to subscribe to paid.

Share this post

Short Ruby News - Edition #62

newsletter.shortruby.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

ยฉ 2023 Lucian Ghinda
Privacy โˆ™ Terms โˆ™ Collection notice
Start WritingGet the app
Substack is the home for great writing