Image of Lucian Ghinda writing for notes.ghinda.com
December 2nd, 2024

Short Ruby Newsletter - edition 116

🚀 Launches


📅 Events:


👉 All about Code and Ruby

There a lot of code samples included; here are just some of them:

  • Jorge Manrubia shared they will announce a surprise for Hotwire before Christmas, Tobi Lutke shared the stats from Shopify during Black Friday
  • Postmodern asked about array.fetch(index,0) versus array[index] || 0 and there was an interesting discussion about it
  • RoRvsWild shared a code sample about avoiding returning from model’s method
  • Nate Berkopec shared the latency numbers every Ruby on Rails dev should know
  • Matt Swanson shared a code sample about using code design to guide developers to make the correct decisions
  • JP Camara shared a thread about calculating the largest known prime number by using the latest PR about "Do not round a**b to infinity by mame · Pull Request \#12033" that will be part of Ruby 3.4
  • Bozhidar Batsov shared a code sample about touching a file in Ruby by using File.open(path, ‘a’) {}
  • Jeremy Smith shared about Stimulus pain points and proposed a solution
  • Gregory Brown shared a a code sample about an inline template experiment
  • Ruby Cademy shared a code sample about using ActiveSupport::BacktraceCleaner
    And there are many more code samples you can browse and have inspiration while coding this week.

Remember to read ️ 📐Thinking about Code where Remi Mercier asked about how to trigger a bunch of turbo streams right after the initial request and got a couple of replies, Noel Rappin started a discussion about treating application.rb and environments files immutable, Benjamín Silva H. asked about if the loops benchmark can be optimised and read the replies.

Inside 💡Around code section, Tropical.Rb asked absout recommendations for people just getting started with Rails and there are some nice replies there about it.

🧰 Gems, Libraries, Tools and Updates

  • Yaroslav Shmarov announced a new gem hotwire_native_rails - Hotwire Native generator for Rails applications
  • Harry Lascelles announced a new gem dememoize - A rubygem to remove memoized values (instance variables) for easier testing
  • Marcus Almeida announced a new gem curlify - The gem convert ruby requests(net/http) into curl command
  • Samuel Williams announced a new project async-discord - combining async-ollama and async-discord
  • Svyatoslav Kryukov announced a new demo repo skryukov/inertia_rails_svelte5_ssr
  • Nemo published a new gem jekyll-sqlite - A Jekyll plugin to use SQLite databases as a data source
  • Adrien Siami announced a new gem hyperactiveform: Simple form objects for Rails
  • Onyx announced a new gem for Pinata library pinata-ruby
    There are also interesting updates from various gems and libraries.

As always, we have more links to newsletters, videos, podcasts, and articles.

Read the full newsletter for free at https://newsletter.shortruby.com/p/edition-116