Short Ruby News - Edition #83

The one where we talk about new Ruby syntax, split the Gems and Updates into 3 categories: New, Updates, and Keep an Eye on, and a lot of code samples and good code design discussions.

You can jump directly to a section:

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

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

[Sponsor โฌ‡] RailsDesigner - get a 50% discount

Ever wished to ship your Rails apps faster and still turn heads? Meet Rails Designer โ€”thรฉ UI component library for Rails apps. Built with ViewComponent. Designed with Tailwind CSS. Enhanced with Hotwire.From Avatars to Dropdowns, Navbars to Modals, Hotkeys to Notificationsโ€”and weโ€™re always adding more. Each component is Rails-optimized and fully customizable, melding with your project as seamlessly as pineapple dares to dance on pizza (hey, we don't judge!).Unlock a 50% launch discount: grab one of the final seats for just $49 and make your Rails projects the talk of the town. Dive in at railsdesigner.com

๐Ÿš€ New Products

๐Ÿš€ Gregory Brown launched their Beginnerโ€™s Guide to Ruby project

๐Ÿš€ Josรฉ Anchieta launched Sportical

๐Ÿ“… Events

๐Ÿ“… Rails Conf announced the official program. You can check it out at Speakers

You can read more about the speakerโ€™s lineup in the RubyCentral article.

๐Ÿ“… Rails Camp USA shared about the available ticket for West.RailsCamp.us/2024

๐Ÿ“… Euruko shared that the registration will open on 22nd March:

๐Ÿ“… Tim Riley shared that Ruby in Common is almost sold out:

๐Ÿ“… Balkan Ruby announced the change of venue and extension of Early Bird tickets:

๐Ÿ“… Vladimir Dementyev shared about OSS Expo at BalticRuby

๐Ÿ“… Madison+ Ruby announced registration open for Madison Ruby: Your Ruby Community

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ’ป Code Samples

๐Ÿ‘‰ Stephen Crosby shared a code samples about limiting N+1s via Proposal: Prevent activerecord access 

๐Ÿ‘‰ Garrett Dimon shared a quick reference sheet about Rails generators a companion for their new book: Frictionless Generators

๐Ÿ‘‰ Sam Kennedy shared a code sample about using the exception_notification: Exception Notifier Plugin for Rails to post messages in Campfire:

๐Ÿ‘‰ Nate Hopkins shared a tip about how to use plain Ruby inside factory bot:

๐Ÿ‘‰ Matt Swanson shared that `find_each` will remove any order on a query in Rails:

๐Ÿ‘‰ Hans Schnedlitz shared a code sample showing how to merge a list of hashes into a bigger flat one:

An alternative to this is using Ruby merge:

๐Ÿ‘‰ Ruby Cademy shared a tip about using delegate_missing_to:

๐Ÿ‘‰ Erwin Kroon shared a code sample and asked what will return:

๐Ÿ‘‰ Dima Fatko shared a code sample showing how to use zip to transform an array:

๐Ÿ‘‰ Nate Hopkins shared a code sample (see the gist at Get the SQL for an insert statement from ActiveRecord) about generating an insert statement for an Active Record model:

๐Ÿ‘‰ Joel Drapper shared a code sample showing how they propose to work with Phlex without calling `render`: (see the feature proposal here)

๐Ÿ‘‰ Thomas Galibert shared a code sample showing how they used SQL COALESCE in Rails:

๐Ÿ‘‰ Gregory Brown shared a code sample implementing a small Sinatra like DSL:

๐Ÿ‘‰ Ruby Cademy shared a code sample showing how to use minmax_by:

๐Ÿ‘‰ Julian Rubisch shared how they are modeling Announcements power pack for Bullet Train:

๐Ÿ‘‰ Ruby Cademy shared about Time#utc and Time#getutc:

๐Ÿ‘‰ Mika Henriksson shared a Kamal configuration for building and deploying from local machine:

๐Ÿ“ Thinking about Code Design

๐Ÿ‘‰ Greg Molnar asked about refactoring a Rails code:

Here are some of the replies:

๐Ÿ‘‰ Thiago Araujo shared about when to use let in RSpec:

๐Ÿ‘‰ Jeremy Smith asked about list of gotchas when rendering HTML for Turbo Streams:

๐Ÿ‘‰ Jess Brown asked about a flickering problem with Turbo Drive and shared a video describing the problem:

Among the solutions suggested:

๐Ÿ‘‰ I shared a code sample with a multi-line end-less method and asked how we feel about it:

Taking into consideration that I asked this question, it is hard for me to pick some replies. You should read the replies on Twitter and Mastodon:

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

๐Ÿ‘‰ Amanda Brooke Perino announced that there will be a new Rails tutorial created this year:

๐Ÿ‘‰ Jim Jones shared about how the Rails Turbo 8 might remove the need to use turbo frames in some places:

๐Ÿ‘‰ Matheus Richard shared a warning found in a Readme:

๐Ÿ‘‰ Steven R. Baker shared they are building a product with the same license as ONCE for organizing cards on a wall:

๐Ÿ‘‰ Marc Kรถhlbrugge announced they are selling their project Story AI build with Ruby on Rails:

๐Ÿ‘‰ I shared a thread about the history of the endless method: what proposals were submitted along the years to deal with removing some `end` keywords. Here is the first part of my thread. You can read it on Twitter or Mastodon:

โค๏ธ Why Choose Ruby

โค๏ธ John Gorriceta shared about how supportive Rails community is:

โค๏ธ Jess Brown shared about how they are impressed by Ruby community generosity:

โค๏ธ Daveyon Mayne shared about how easy it is to set up a single-page app landing with Rails:

โค๏ธ Iheanyi Ekechukwu shared why they like Rails:

๐Ÿงฐ Gems, Libraries, Tools and Updates

๐Ÿ†• New Gems and Repos

๐Ÿงฐ Updates

๐Ÿงฐ Avo announced a new version of Avo - Content Management System for Ruby on Rails

๐Ÿงฐ Denis Defreyne announced a new release for Nanoc ยป Release notes

๐Ÿงฐ Bozhidar Batsov announced a new version of Release RuboCop 1.62.1 ยท rubocop/rubocop

๐Ÿงฐ Nate Hopkins announced a new version of turbo_boost-commands gem that fixes a Potential for arbitrary method invocation

๐Ÿงฐ Julian Rubisch announced a new version of Release 1.4.0 ยท stimulusreflex/futurism

๐Ÿ‘€ Keep an eye on

๐Ÿ‘€ Fable Tales submitted a bug on Ruby issue tracker about calling new has regressed allocations over past few ruby releases

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

๐Ÿค Prem Sichanugrist asked about adding โ€œno AI generated code will be acceptedโ€ to an open-source contribution guide:

๐Ÿ‘‰ Josh Pigford asked about what choice of IDs

Here is one of the replies:

๐Ÿค Xavier Noria shared about functional programming:

๐Ÿค Nate Hopkins shared about naming:

๐Ÿค Konnor Rogers shared 

๐Ÿค Adam Wathan shared 

๐Ÿค Jason Swett shared 

๐Ÿค Dave Thomas shared 

๐Ÿค Ben Orenstein shared a video with an advice about how to approach projects:

An good quote from the video is shared here by Justin:

๐Ÿค Christian Findlay shared 

๐Ÿค Dave Paola shared 

๐Ÿค I shared:

More content: ๐Ÿ“š ๐Ÿ—ž ๐ŸŽง ๐ŸŽฅ โœ๐Ÿพ

๐Ÿ—ž Newsletters

๐Ÿ—ž Ruby Weekly published a new edition about Turbocharging Puma with Thruster

๐Ÿ—žRuby Libhunt published a new edition about Awesome Ruby Newsletter - Issue 408, Mar 14, 2024

๐Ÿ—ž Ruby On Rails published a new edition of This Week in Rails about Active Record Basics Guide Refresh, Encrypted Attributes Re-Optimization, and more...

๐Ÿ—ž Hotwire Weekly published a new edition about Week 11 - Turbo Morphing Deep Dive, Turbo Streaming Modals, and more!

๐Ÿ—ž Sajjad Umar published a new edition about Ruby on Rails - March 2024

๐ŸŽง Podcasts

๐ŸŽง Jason Swett published a new episode about 213 - Adrian Marin, Founder of Avo - The Code with Jason Podcast

๐ŸŽง Founder Quest published a new podcast about Insights Into Our Marketing Playbook | FounderQuest | Episode 10

๐ŸŽง The Bike Shed published a new episode about The Bike Shed: 418: Mental Models For Reduce Functions

๐ŸŽง Maintainable Software Podcast published a new episode about Irina Nazarova - Investing in Innovation: The Consultancyโ€™s Guide to Growth

๐ŸŽง The Ruby on Rails Podcast published a new episode about Episode 511: WebAssembly with Benjamin Eckel

๐ŸŽง RemoteRuby published a new episode about Struggles and Strategies-Dev Dilemmas

๐Ÿ“ฝ๏ธ ๐ŸŽฅ Videos

Screencasts

๐ŸŽฅ Tomas Valent published a new video about Ruby on Rails Delegated types + Turbo frames (Hotwire) examples

๐ŸŽฅ Sam Johnson published a new video about Make your app faster: Understanding HTTP caching

๐ŸŽฅ Joe Masilotti published a new video about Turbo Native live coding

๐ŸŽฅ Jason Swett published a new video about: 

๐ŸŽฅ Ruby Rogues published a new video about SQLite on Rails

๐ŸŽฅ Kasper Timm Hansen published a new video about Riffing on Rails: Recurring Reports modeling

๐ŸŽฅ John Hawhorn published a new video about Pairin' with Aaron: Hacking on Vernier

๐ŸŽฅ Thoughtbot published a new video about Improving Rails Test Suite Performance (continued)

๐ŸŽฅ Jeffrey Chupp and Jeff Dwyer published a new video about Live pair programming: Building Rate Limits In Ruby

๐ŸŽฅ Dean De Hart published a new video about Rails Kamal Deployer for Game Hosting

โœ๐Ÿพ Articles

Whatโ€™s new ๐Ÿ†•

App Signal published a new article about AppSignal's 2024 Ruby Event Sponsorships

Joรซl Quenneville published an article about How to approach a reduce problem

Balรกzs Kutil published an article about Handling forks in threaded code in Ruby

Ahmed Nadar published an article about Meta or not to Meta programming in Ruby

Artur Roszczyk published an article about about Today, I would avoid metaprogramming at all costs

Cristian Molina published an article about Experimenting with Modern UI Alternatives in Rails

Martin Emde published a new article about Password Reset Vulnerabilities, Hacker One and Humility

Deep Dives ๐Ÿ”

Sammy Steele published an article about How Figmaโ€™s Databases Team Lived to Tell the Scale

Rรฉmy Hannequin  published an article about Numeric data types in Ruby and when to use them

Daniela Baron published an article about Efficient Database Queries in Rails: A Practical Approach

Akshay Khot published an article about Understanding Ruby defined? Keyword

How-TOs ๐Ÿ“

Rails Designer published an article about Flash Messages (notifications) in Rails Apps

Julian Rubisch published an article about Execute Third Party Code in a Rails App

Ayush Newatia published an article about Turbo Streaming Modals in Ruby on Rails

Harrison Broadbent published a new article about Using Rails debugger/rdbg with VS Code

Aestimo Kirina published an article about Let's build a Hanami app

Goulven Champenois published an article about Rspec tips and tricks

Dmitry Gutov published an article about Using dry-validation with Grape

Matt Polito published an article about Using a hash of data for string replacement in Ruby

Sergey Tsvetkov published an article about Payload and parameters validation in Rails

Jack Flannery published an article about Test Driving a Rails API - Part One

Paweล‚ Pacana published an article about How to get burned by 16 years old hack in 2024

Ivan Ivashchenko published an article about Ruby on Rails containerization example

Bill Tihen published an article about Rails 7.1.x API Exploration

David Boureau published an article about How to benchmark Ruby code

Alkesh Ghorpade published an article about Boost Your Ruby on Rails Application Performance with Bullet Gem

Related

Karl Oscar Weber published a new article about From layoff to $5k MRR in one month

Reply

or to participate.