Short Ruby News - Edition #84

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 

More content: 📚 🗞 🎧 🎥 ✍🏾 (articles, podcasts, videos, newsletters)

🚀 New Products

🚀 Prabin Poudel launched Zero Config Rails

🚀 Paweł Dąbrowski launched Buildless.app

🚀 Guillaume launched the new documentation for Stimulus Components

📅 Events

📅 Red Dot Ruby Conf announced that RedDotRuby conference is back → RDRC 2024

📅 Muhamed Isabegović shared they lowered the minimum prices for EuRuKo

📅 Ruby For Good announced the registration is open for Ruby for Good 

📅 African Ruby Community announced the CFP is open at PaperCall.io - Ruby Conf Africa 2024

📅 Madison+ Ruby announced CFP is open at Madison Ruby: Your Ruby Community

📅 Helvetic Ruby announced the speaker lineup  Helvetic Ruby | 17th of May 2024, Zürich

👉 All about Code and Ruby

💻 Code Samples

👉 Étienne Barrié and Jean Boussier added a commit to Ruby 3.4-dev Implement chilled strings · ruby/ruby@12be40a

Jean Boussier shared a bit more about this:

And you can read the feature proposal at Enable `frozen_string_literal` by default

👉 Truffle Ruby announced a new version of Release TruffleRuby 24.0.0 · oracle/truffleruby

👉Aaron Patterson shared about optimizing delegates in Ruby:

👉 Steven R. Baker shared A demonstration of how you might implement a `context` helper for sharing state between tests when using the declarative `test` helper in ActiveSupport with the warning that it should not be used:

Here is the main part of the gist but I think you should read it all:

👉 Hans Schnedlitz shared a tip about the aliasing method in Thor:

👉Nicolas Buduroi shared about using presence_in:

👉 Casper Klenz Kitenge shared about the fact that Rails render looks also in app/views/application and can be used for shared partials:

👉 Matheus Richard shared about configuring ActiveRecord::QueryLogs - Ruby on Rails API

Here is a similar example shared by RubyCademy:

👉 Onur özer shared how to use Rails helpers to generate all days of a year:

And Benedikt Deicke shared another helper:

👉 David Colby shared about adding the refresh/scroll position meta tags for Turbo:

👉 Ruby Cademy shared a code sample about using Rails enum validation:

Rails also shared the a code sample for validating enums:

👉 Dima Fatko shared a code sample about Shitlist Driven Development

👉 Facundo Espinosa  shared about the auto scroll working for turbo frames not working when the first child is not generating any box:

👉 Maxim Krizhanovski shared that x&.&foo is a valid Ruby syntax:

👉 Jorge Manrubia shared a code sample about working with date/time:

👉 David Colby shared about turbo refreshes:

👉 Dave Kimura shared about attribute::attachement that can be used in generators:

👉 Joel Drapper shared about selective rendering:

👉 Maxim Krizhanovski shared about active_record_block_matchers:

👉 Tom shared how they use then:

👉 Ruby Cademy shared a tip about generating a new rails app with minimal configuration:

👉 Prabin Poudel shared a code sample about impersonating users with token base authentication:

👉 Josef Strzibny shared about upgrading to Rails7 with Turbolinks and Sprockets:

👉 Cameron Dutro asked a question about trying to access an array with a float index:

👉 Landon Gray shared a code sample about supporting Retrieval Augmented Generation in Ruby apps:

📐 Thinking about Code Design

👉 Joel Drapper shared how they are streaming Rails error page in development:

👉Nithin Bekal shared about metaprogramming:

👉 Greg Molnar asked about writing security tests:

👉 Robert Pankowecki shared about sanitizing user html:

One other take on this:

👉 John Mc Dowall asked about patterns for handling multi-step user on-boarding:

Here are some replies:

👉 Bhumi asked about the difference between view and template:

Here are some replies:

👉 Michael Chaney asked about why OpenStruct is much slower:

Jean Boussier answered:

👉 Joel Drapper shared about the need to cache:

Here are some replies about this:

💡 Around code (news, findings, books and more - all about Ruby)

👉 Ruby On Rails shared about Rails Guides get a facelift

👉 Jared White shared Sponsor @jaredcwhite on GitHub Sponsors

👉 Ruby Central shared about the grant they received:

👉 Ruby On Rails shared rails rails Docs · Discussions

👉 Paweł Dąbrowski shared that the first 3 chapters are available for free at Ruby on Rails on AWS

👉 Ernesto Tagwerker shared  their slides from Sin City Ruby about Stuck in the Tar Pit at Sin City Ruby '24

👉 Alexandre Ruban shared that their tutorial about Hotwire reached 1M page views:

👉 Josef Strzibny asked about who is creating paid content for Rails front-end and Hotwire:

Here are some of the replies:

👉 Obie Fernandez shared Join the Ruby AI Builders Discord Server!

👉 Scott Werner shared Blueprints for Phlex and DaisyUI

❤️ Why Choose Ruby

❤️ The Rails Changelog asked about reasons for picking Ruby on Rails over other web frameworks:

Josh Brown replied with:

❤️ Rafael Peña Azar shared that Ruby and Crystal can be used for more than web development:

❤️  Schappi shared about using Ruby on Rails framework:

🧰 Gems, Libraries, Tools and Updates

🆕 New Gems and Repos

🆕 Stephen Margheim announced a new gem feather: Ruby library for working with SQLite elegantly

🆕 Arjun Lall and Evgeny Li published a new gem bemi-rails: Robust data change tracking for Rails

🆕 Obie Fernandez announced a new gem OpenRouter - Ruby library for OpenRouter API

🆕 Kevin Newton announced a new gem onigmo: A Ruby wrapper around the onigmo regular expression library

🆕 Rafael França announced a new repo rails/rails-new

🧰 Updates

🧰 Hiroshi SHIBATA announced two vulnerabilities on StringIO gem:

🧰 David Rodriguez announced a new release of RubyGems:

🧰 Alan Wu merged a PR to Ruby about YJIT: Avoid leaks by skipping objects with a singleton class

Related to this Andrei Maxim shared a performance graph:

🧰 David Heinemeier Hansson announced that solid_queue is now moved to Rails: rails/solid_queue: Database-backed Active Job backend

🧰 Rosa Gutierrez merged a new PR to Solid Queue about Add support for recurring tasks (cron style jobs)

She also added support to Mission Control Job Expose recurring jobs

🧰 Okura Masafumi announced a new version for  [Feat] Add the ability to change key for metadata by okuramasafumi · Pull Request #362 · okuramasafumi/alba

🧰  Joel Drapper shared Improve performance by using bytesize when comparing if the string changed by davekaro · Pull Request #690 · phlex-ruby/phlex

🧰 Kirill Platonov announced a new version of Release v2.0.0 · baoagency/polaris_view_components

🧰 Any Cable announced a new version of Release 1.5.0-rc.1 · anycable/anycable-go

🧰 Chris Oliver announced a new version of GitHub - excid3/noticed: Notifications for Ruby on Rails applications

🧰 John Nunemaker announced a new version of Drop old ruby support by jnunemaker · Pull Request #799 · jnunemaker/httparty

🧰 Jeremy Evans announced a new version of Rodauth 2.34.0 Released · jeremyevans rodauth · Discussion #399

More content: 📚 🗞 🎧 🎥 ✍🏾

🗞 Newsletters

🗞 Vipul A M published a new edition of This Week in Rails about Rails guides facelift, two new official gems and more!

🗞 Hotwire Weekly published a new edition about Week 12 - New Turbo Native Releases, sortable tables with Turbo 8, and more!

🗞 Ruby Weekly published a new edition about Chilling out with Ruby strings

🗞 Ruby LibHunt published a new edition about Awesome Ruby Newsletter - Issue 409, Mar 21, 2024

🎧 Podcasts

🎧 Yaroslav Shmarov published a new podcast about Why Detroit?! Meet Ufuk, the secret organizer behind Rails Conf 2024 - Friendly Show

🎧 The Bike Shed published a new podcast about The Bike Shed: 419: What's New in Your World? (Extended Edition)

🎧 Indie Rails published a new podcast about IndieRails | Crafting Service Offerings

🎧 Chris Oliver published a new podcast about RailsConf 2024 with Ufuk Kayserilioglu - Remote Ruby

🎧 Ruby Rogues published a new podcast about Building Skills and Connections with Nathan Bellow - RUBY 629 - Ruby Rogues - Top End Devs

📽️ 🎥 Videos

Screencasts

🎥 Igor Alexandrov published a new video about Episode #1 – Basecamp's Kamal code walkthrough

🎥 Dave Kimura published a new video about  Episode 447 - Bulk Updates | Drifting Ruby

🎥 Roland Lopez published a new video about [EP 11] High level intro to build a customiZed chat-gpt AI app using Ruby On Rails and Turbo

🎥 Dean De Hart published a new video about Live Coding with Jose Farias from 37Signals - Hotwire Combobox Gem and about Dev Containers - New To Rails 8! and about The Open3 Gem in Rails for Background Processes

🎥 Sam Johnson published a new video about How to setup a Postgres streaming replica with Kamal

🎥 Yaroslav Shmarov published a new video about SupeRails #163 Instant page loads with Turbo 8 prefetch

🎥 Cezar Halmagean published a new video about Building a Property Management System (live stream)

🎥 Rubyconftw published a new video about RubyConf Taiwan 2023

🎥 Jose Farias published a new video about Ruby on Rails Live Coding | Maybe Finance | Swappable Data Providers

✍🏾 Articles

What’s new 🆕

Jeremy Friesen published an article about Refactoring a Ruby Module Mixin into a Class

Caleb Hearth published an article about Write cleaner, self-documented tests by defining methods in RSpec

I published an article about Endless Method Syntax History and about Ruby Benchmark: Data.define, Struct, OpenStruct

Eric Berry published a new article about Awesome Hotwire

Julik Tarkhanov published a new article about Testing a Thousand Applications With Flipper

Thomas Riboulet published an article about Good Database Migration Practices for Your Ruby on Rails App using Strong Migrations

Deep Dives 🔍

Noel Rappin published a new article about  Better Know A Ruby Thing #5: Block Arguments

Justin Searls published an article about  How to control Time in Ruby on Rails

David Colby published a new article about Turbo 8 morphing refreshes on Rails

How-TOs 📝

Greg Molnar published an article about Brute-forcing 2FA with Ruby

Miles published a new article about Automated Database Backups with Kamal

Damian C. Rossney published an article about Full Stack Hanami, Part 1, Full Stack Hanami, Part 2, and Full Stack Hanami, Part 3

Ismael Celis published an article about Practical Railway-Oriented Pipelines in Ruby

David Colby published an article about Building a sortable table with Turbo 8's page refreshes

Shinsoku published a new article about Understand the difference between untyped, void, top, and bot of RBS - JP (EN version translated with Google translate)

Jan Grela published a new article about SQL views in Ruby on Rails - Blog - Visuality

James Hibbard published a new article about Using dry-validation with Grape

Borja Garcia De Vinuesa Ordovás published a new article about Flexible Enum Definitions in Ruby on Rails: Planning for the Future

David Boureau published an article about Ruby regex guide

Jijo Bose published an article about Rails 8 adds allow_browser to set minimum browser version

Related

Niki published an article about JavaScript Bloat in 2024

Michael Buckbee published a new article about How to block AI bots from scraping your site

All issues