- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #83
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
๐ All about Code and Ruby:
๐ป Code Samples
๐Code Design
๐กAround code
โค๏ธWhy Choose Ruby
๐ New
๐งฐ Updates
๐ Keep an eye on
๐ค Related (but not Ruby-specific)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters)
[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
๐ Jeremy Smith and Kasper Timm Hansen launched Domain Modeling in Rails

๐ 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
๐ Masataka Pocke Kuwabara published a new gem called activerecord-originator - Add SQL comments to indicate the origin of the SQL

You can read a more detailed article about it.
๐ Hans Schnedlitz announced a new gem tints-n-shades: The tints & shades generator for CLI lovers

๐ John Gorriceta announced a project crimson: A component library for Ruby on Rails that styles all the boring stuff

๐ Michael Lang announced a new version of Announcing Quantitative - Quantitative and Statistical analysis toolset for Ruby 3.x

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

๐งฐ Chris Oliver announced a new version of tailwindcss-stimulus-components: A set of StimulusJS components for TailwindCSS apps similar to Bootstrap JS components

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

๐งฐ Jeremy Evans announced a new version of Roda 3.78.0 Released ยท jeremyevans roda ยท Discussion #354

๐งฐ Andrew Kane announced a new version of strong-migrations - Catch unsafe migrations in developmentCatch unsafe migrations in development gem:

๐งฐ Alexis Bernard announced a new version of active_hashcash: Protect Rails applications against bots and brute force attacks without annoying humans

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

๐งฐ Sunao Hogelog Komuro announced a merged PR to IRB about Add disable_irb command to disable debug of binding.irb by hogelog ยท Pull Request #898 ยท ruby/irb

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

๐งฐ Mike Dalessio announced a new version of Release 1.7.3 / 2024-03-15 ยท sparklemotion/sqlite3-ruby

๐ Keep an eye on
๐ Fable Tales submitted a bug on Ruby issue tracker about calling new has regressed allocations over past few ruby releases

๐ Nobuyoshi Nakada submitted a bug on Ruby tracker about Top level `public`, `private` and `ruby2_keywords` do not work in wrapped load

๐ Steve Polito shared a PR proposed for RSpec-Rails about Use headless driver for next Rails release by stevepolitodesign ยท Pull Request #2746 ยท rspec/rspec-rails

๐ค 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:

Nate also suggested the use of prefixed_ids - Friendly Prefixed IDs for your Ruby on Rails models
๐ค 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
๐ง Ruby For All published a new podcast about Ski Slopes, Sorbet, and Copilot โ Effective Learning with Ryan Caldwell | Ruby for All | Episode 62
๐ง 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
๐ฅ Yaroslav Shmarov published a new video about SupeRails #162 Gem Ferrum - Generate PDF and PNG with Headless Chrome
๐ฅ 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)
๐ฅ Guillaume published a new video about Why You Really Don't Need SPA with Hotwire - Guillaume Briday - Lyon.rb Meetup 03/2024 (FR)
๐ฅ Ken Greeff published a new video about Creating Posts with Rich Text - Construction Project Manager - Part 14
๐ฅ 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
Aaron Sumner published an article about Notes from migrating from Minitest to RSpec, with help from GitHub Copilot
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
Ahmed Nadar published an article about Dynamic Rails View Helpers: A Fairy Tale of Refactoring for Component
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
Radan Skoric published an article about How to customize Rails console setup without modifying the project
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
Maciek Korsan published an article about How to add a loading animation to your turbo frame with TailwindCSS
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