Short Ruby News - Edition #86

The one with many discussions about code design in Ruby

You can jump directly to a section:

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

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

πŸš€ New Products

πŸš€ Vladimir Dementyev launched Ruby Warrior running in browser:

πŸ“… Events

πŸ“… RailsConf 2024 has a flash sale that will end today (Monday 15 April):

Rails Conf 2024

πŸ“… Ruby Kaigi announced the Schedule and CFP for Lightning Talks is now open

πŸ“… If you plan to submit your talk for a conference check out rubyconferences.org/cfp

πŸ‘‰ All about Code and Ruby

πŸ’» Code Samples

πŸ‘‰Nicolas Buduroi shared about implementing deep_freeze on Object by using Ractor make_shareable method:

πŸ‘‰ Julian Rubisch shared two code samples to convert images to webp and create thumbnails from them (check the gist here):

πŸ‘‰ Lori Olson shared  a code sample about sending ebooks to Kindle

πŸ‘‰ Dima Fatko asked about why to freeze constants in Ruby:

Here are some replies:

πŸ‘‰ Adam Rice shared about the value of PROGRAM_NAME in rails console:

πŸ‘‰ Joel Drapper shared about how they implemented the efficiency option in Quickdraw:

πŸ‘‰ Prabin Poudel asked about use cases for using Proc and Lambda in real applications:

Here are some replies:

πŸ‘‰ Ruby Cademy shared 

πŸ‘‰ Vidar Hokstad shared an explanation about how meta classes work in Ruby:

πŸ‘‰ Kristian Freeman shared a code sample showing how to use prexied_ids gem:

πŸ“ Thinking about Code Design

πŸ‘‰ Zaru shared about the performance improvements gained from upgrading to Ruby 3.3:

πŸ‘‰ Nate Berkopec shared about caching:

πŸ‘‰ Ryan Bates asked about what is more straightforward to debug:

Here are some replies:

πŸ‘‰ Jaredmoody asked about Phlex and vanilla path in Rails:

Joel Drapper replied (you should read the entire thread shard by Joel):

πŸ‘‰ Gavin Morrice shared about avoiding global state:

Michael Chaney replied that one of the cases is for current user:

πŸ‘‰ Nate Berkopec shared about making the browser the focus when thinking about performance:

πŸ‘‰ Ryan Bates shared about Rails engines as not being the right abstraction for a gem:

Gavin Morrice replied, sharing their experience about modularizing a monolith with Rails engines:

πŸ‘‰ Ryan Bates shared about using class methods over POROs:

πŸ‘‰ Donn Felker shared about replacing third-party stimulus controller with Hotwire for autocomplete:

πŸ‘‰ Matheus Richard asked about adding modules to a route:

Here is a possible solution:

πŸ‘‰ Brad Gessler invited people to think twice before using STI in Rails:

Here are two other perspectives:

πŸ‘‰ Ross Kaffenberger shared about testing API wrappers:

πŸ‘‰ Jason Swett asked about the definition of PORO:

Here are some replies:

πŸ’‘ Around code (news, findings, books and more - all about Ruby)

πŸ‘‰Mohit Sindhwani shared about running Rails 7.2 alpha and Ruby 3.3 on regular Window:

πŸ‘‰ Dhaval Singh shared about learning Ruby:

πŸ‘‰ David Colby asked about in person Ruby meetups:

Matt Swanson suggested a way to re-start in person meetups:

πŸ‘‰ Carlos Antonio shared that Devise support for Rails 4.1 and Ruby 2.1 will go away soon:

πŸ‘‰ Alex Rudall shared their project alexrudall/ruby-openai: OpenAI API - reached 10 million downloads:

πŸ‘‰ Andrei Bondarev shared about Langchain hitting 1k stars on Github:

πŸ‘‰ Irina Nazarova shared about Anycable capabilities:

πŸ‘‰ Ross Kaffenberger shared about the history of naming Capybara:

❀️ Why Choose Ruby

❀️  Andi / をンディ shared about Ruby elegance and simplicity:

❀️ Andrew Hodson shared about Rails community:

❀️  Jared Norman shared about hype cycle and Ruby

❀️ Mark Hesketh shared about the stack that makes them happy:

❀️ Maciek RzΔ…sa shared a quote from Wroclove.rb

❀️ Josh Pigford shared about AI-assisted programming working better for Rails:

🧰 Gems, Libraries, Tools and Updates

πŸ†• New Gems and Repos

You should check the Ollama example PR that Samuel created to show how it works.

πŸ†• Johny Ho announced a new gem called form_props - The power of Rails forms for React

🧰 Updates

🧰 Heartcombo announced a new version of Devise version 4.9.4 

🧰 Bozhidar Batsov announced a new version of Release RuboCop 1.63 Β· rubocop/rubocop

πŸ‘€ Keep an eye on

🀝 Related (but not Ruby-specific)

🀝  PaweΕ‚ DΔ…browski shared about their experience:

More content: πŸ“š πŸ—ž 🎧 πŸŽ₯ ✍🏾

πŸ“½οΈ Slides

πŸ“½οΈ Andrey Novikov shared their slides from RubyConf AU about Threads, callbacks, and execution context in Ruby

πŸ“½οΈ Radoslav Stankov shared their slides from Wrclove.rb about Component-Driven UI with ViewComponent Gem

πŸ—ž Newsletters

πŸ—ž Greg Molnar published a new edition of This Week in Rails about A week of fixes

πŸ—ž Ruby Weekly published a new edition about Crystal in your Ruby

πŸ—ž Ruby LibHunt published a new edition about Awesome Ruby Newsletter - Issue 412, Apr 11, 2024 | LibHunt

🎧 Podcasts

🎧 The Bike Shed published a new podcast about The Bike Shed: 422: Listener Topics Grab Bag

🎧 Remote Ruby published a new podcast about Code, Confessions, and Casinos - Sin City Ruby - Remote Ruby

🎧 The Ruby on Rails Podcast published a new episode about  The Ruby on Rails Podcast Episode 513: Modern Rails Apps Ayush Newatia

πŸ“½οΈ πŸŽ₯ Videos

Screencasts

πŸŽ₯ Dean De Hart published a new video about Kamal Traefik Dashboard for Ruby on Rails 7

✍🏾 Articles

What’s new πŸ†•

 Gift Egwuenu published a new article about March 2024 RubyGems Updates

Nithin Bekal published an article about Abstract methods and NotImplementedError in Ruby

Shun Sugai published a new article about Became a Ruby 3.3.0+YJIT production operation company - translated with Google Translate (read the original in JP)

Siddharth Shringi published an article about Rails 8 adds Rubocop by default to new applications

Ruby Association published a new article about JetBrains Supports the Ruby Ecosystem With Ruby Association Sponsorship

RoRvsWild published an article about Super Fast Rails – A promise given is a debt

Jason Zimdars published an article about Modern CSS patterns in Campfire

Stephen Margheim published a new article about SQLite on Rails: Isolated connection pools

How-TOs πŸ“

Fiona Lapham published an article about How to Build a Discord Bot in Ruby on Rails

Aestimo Kirina published an article about Account-based subdomains in Rails

Kevin Baribeau published an article about Work around Rails schema noise with one weird trick

Dumebi Okolo published an article about Simple Authentication in Ruby on Rails: a step by step guide

Kevin Murphy published an article about Making a (Sidekiq) Batch Recipe

RailsDesigner published an article about Guide to Slots in Rails’ ViewComponent

Alkesh Ghorpade published an article about Maximizing Code Quality with Rails Pre-Commit and Pre-Push Hooks

Youssef Boulkaid published an article about Hands-off eclipse photography with ruby and gphoto

Deep Dives πŸ”

Akshay Khot published an article about How I Read Rails Source Code

Mathieu Eustachy published an article about Process management in Ruby

Reply

or to participate.