Short Ruby News - Edition #95

The one about the Ruby 3.3.3 release together with the Security for Rails developers book pre-sale launch and finding out that Ruby is the highest paying job so far in 2024

You can jump directly to a section:

🚀 Launches and discounts & 📅 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)

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

[Promo ⬇] avohq.io

Adrian from Avo is looking to find someone to write some technical articles.The ideal candidate is a junior to mid-level Ruby developer who enjoys keeping up with the Ruby community and current events and writing content.The budget is around $100/article, but it's flexible depending on the requirements and deliverables.If you think you're the right person to help out with this, please reach out to adrian@adrianthedev.com

🚀 Launches and discounts

🚀 Greg Molnar launched their course Security for Rails Developers  for pre-sale:

🚀 Josef Strzibny launched his side project Tube and Chill

🚀 Simon Chiu shared a demo of Proggy.io, an app that helps you build command-line programs:

📅 Events

📅 Adarsh shared his joy about Jim Remsik teaming up with Reveal to restart Detroit #Ruby meetups! - The next one is happening on 20 June:

There are a couple of meetups happening this week:

👉 All about Code and Ruby

👉 Takashi Kokubun announced the release of Ruby 3.3.3

👉 Postmodern shared ruby-install now supports Ruby 3.3.3

👉 Mateusz Palak shared Remote Work Statistics 2024 - Stack Overflow Salary Calculator Alternative

💻 Code Samples

💻 Dave Copeland shared a gist on two object-oriented ways - with stateless and stateful objects and is curious about what you think about these.

He also added:

💻 Nishidayuya shared performance benchmarks for running Redmine on Ruby 3.3 YJIT:

💻 Stanislav Katkov shares about Error Reporting in Rails Applications

Ruby Cademy also added a code sample about the error reporting:

💻 Ruby On Rails shares a tip on a new Rails 7.1 feature that uses AR `to_s` to render the object:

💻 Scott Watermasysk shared a code sample about using metaprogramming to define methods:

💻 Jose Farias shared a code sample about adding a Tailwind modifier and using it in Rails:

💻 John Mc Dowall shared a tip on creating a job lock

Here is Keygen’s reply to the same:

💻 Ruby Cademy shares about virtual columns in Rails 7

💻 Stephen Margheim a codepen for range sliders:

Here is more of what he shared:

💻 Chris Oliver shared how on click works awesomely for simple features.

💻 Ruby Cademy shares that Basecamp's Marginalia comments was added on Rails 7 to query logs.

💻 Max Vel Dink gives us a quick reminder on Hash#fetch, which can take a block argument to fall back if the key is missing:

📐 Thinking about Code Design

📐 Julian Rubisch shared a case study about Performance Optimization for Avo - RailsReviews

📐 Postmodern shared a Benchmark that shows if/else with .kind_of? is 4x faster than case/in.

📐 Marc Köhlbrugge shared how syncing external service’s state to app’s database would be helpful if your code tightly integrates with an external service.

📐 Bilal shared about using Cloudflare to cut asset requests traffic to the Rails app:

📐 Brian Scanlan shared about code survival in Rails monolith at Intercom:

📐 James Kerr talks about how every good rule has reasonable exceptions. Did you know about this on ActiveRecord#valid?

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

💡 Matt Swanson shares on i18n pluralization concept:

💡 Michael Chaney shared on how to use Thruster in your local development environment

💡Kyle Keesling shared Chris Oliver’s guide on How To Update ActionText Attachments for Rails 7.

💡 Matt Swanson speaks on why building features with async step needs a max retry or expiration date

👉 Deepak Mahakale shared about a feature that will come in Rails 8:

❤️ Why Choose Ruby

❤️ Andrew Brown shared about why they choose Rails

❤️ John Davison shared about Rails:

❤️ Landon Gray shared about Ruby community:

❤️ Stephan shared about the language:

🧰 Gems, Libraries, Tools and Updates

🆕 New Gems and Repos

🆕 Stanislav (Stas) Katkov published a new gem state_machine_enum - This concern adds a method called "state_machine_enum" useful for defining an enum using string values along with valid state transitions

🆕 Svyatoslav Kryukov published a new gem turbo-mount - Use React, Vue, Svelte, and other components with Hotwire

🆕 Lekë Mula released a new gem called  solargraph-rspec: Solargraph plugin supporting RSpec code completion

🆕 Chris Oliver announced the release of refer: Referral codes for Ruby on Rails applications

🆕 Matouš Borák published a new gem called dump-cleaner - s a tool that can randomize or anonymize your database dumps. Currently, it works with the MySQL Shell Dump format

🆕 Tim Marks published a new gem called policygen-rails - PolicyGen is a ruby gem for mounting TOS, Privacy and other policies

🧰 Updates

🧰 Samuel Williams announced a new version of rack

🧰 Camilo announced shipping standard ruby version 1.37.0 with a new rule Style/SuperArguments.

🧰 Mike Dalessio announced a new version of Release v1.16.6 / 2024-06-13 · sparklemotion/nokogiri

🧰 Chris Oliver announced a new version of revise_auth: A pure Rails authentication system like Devise.

🧰 Alex Rudall announced a new version Release v7.1.0 · of ruby-openai

He also shared about releasing a new version of anthropic: Anthropic (Claude) API + Ruby! 🤖🌌

🧰 Rémy Hannequin announced a new version Release v0.5.0 · astronoby

🧰 Mari Imaizumi announced a new version Release of v0.5.9 · ruby/reline

🧰 Jeremy Evans announced a new version Roda 3.81.0

🧰 Josef Strzibny announced a new version Release v0.7.0 · devise-otp

🧰 Nate Hopkins announced a new version of turbo_boost-commands: Commands to help you build robust reactive applications with Rails & Hotwire.

🧰 Andrei Kaleshka announced a new version of actual_db_schema: Wipe out inconsistent DB and schema.rb when switching branches. Just install this gem and use the standard rake db:migrate command.

👀 Keep an eye on

👀 Ruby Conf is looking for volunteers to be CFP Coach Mentors.

👀 Lucian Ghinda shared that Yukihiro Matz has announced a Syntax moratorium and no new syntax changes will be added till ruby 3.4 is released.

🤝 Related (but not Ruby-specific)

🤝 Adrian Marin shared a tip about enabling Tax ID on Stripe (see documentation):

🤝 Xavier Noria shared advice about how to be a good independent consultant:

🤝 Max Vel Dink calls for volunteers to revive Orlando Ruby meetup :

🤝 Robert Pankowecki shared how postgreSQL makes it simpler to add index to big tables, which you could use on your Rails app, of course.

 

More content: 📚 🗞 🎧 🎥 ✍🏾

Radoslav Stankov shared their slides from Baltic Ruby at Living Without Exceptions

🗞 Newsletters

🗞 Rails published a newsletter briefing New transaction event, bugfixes and more!

🗞 Ruby Weekly published Ruby Weekly Issue 707: June 13, 2024

🗞 Hotwire Weekly published a new edition about Week 24 - Using React with Hotwire, Refreshing Turbo Frames, and more!

🗞 Awesome Ruby Newsletter published Awesome Ruby Newsletter #421

🗞 Sajjad Umar published a new edition of Ruby on Rails June 2024

🎧 Podcasts

🎧 Indie Rails published a new podcast IndieRails | Natalie Kaminski & Igor Alexandrov - JetRockets Origins

🎧 Jason Swett published a new podcast What Causes Flaky Tests with Brad Pauly - The Code with Jason Podcast

🎧 The Build And Learn Podcast published a new podcast Build and Learn | Last RailsConf, Gameboy Nostalgia, and Platform Risk

🎧 The Rails Changelog published a new podcast about Discussing Rails Camp USA with Bobbilee Hartman | The Rails Changelog | Episode 22

🎧 Ruby Rogues published a new podcast Learn about A documentation-first approach to Rails API development from Svyatoslav Kryukov

🎧 The Bike Shed published a new podcast about The Bike Shed: 428: Ruminating on Ruby Enumerators

🎧 Remote Ruby published a new podcast about Rails 7.2 beta 1 with the GoRails Gang

📽️ 🎥 Videos

Screencasts

🎥 Collin published a new video about Refactoring with Enumerable partition (Example)

🎥 Yaroslav Shmarov published a new video about Ruby on Rails #171 Internationalisation (i18n) basics and about Rails #173 i18n. automate translations with AI and save $$$$

🎥 Xavier Noria published a new video Xavier Noria – A Dateless Mindset

🎥 Helvetic Ruby published a new video Helvetic Ruby 2024

🎥 Yaroslav Shmarov published a new video Ruby on Rails #172 i18n. Set language preferences in session or in User model

🎥 Fireship published a new video Ruby on Rails in 100 Seconds.

🎥 Obie Fernandez published a new video Obie Fernandez: Ruby and Rails & AI: Leading Prompt-Driven Development

🎥 Graceful.Dev published a new video about Endless Ranges in Ruby

🎥 Andrew Atkinson published a new video about SaaS on Rails on PostgreSQL | POSETTE 2024

🎥 Jason Swett published a new video about DRYing up Output Streaming Code - Live Coding on SaturnCI

✍🏾 Articles

What’s new 🆕

🆕 The Rails Foundation published a new article about Meet TableCheck, the newest Contributing member of the Rails Foundation

🆕 Prasanth Chaduvula published a new article about Ruby 3.4 Throws SyntaxError As Keyword Arguments Are No Longer Allowed In Index.

🆕 Vladimir Dementyev published a new article about The art of Turbo Mount: Hotwire meets modern JS frameworks—Martian Chronicles, Evil Martians’ team blog

🆕 Fabrízio Saullo published a new article about Developing Modern Web Applications with Rails: Choosing the Right Component Tool

🆕 Josef Strzibny published a new article about Understanding Kamal healthcheck settings

🆕 Mateusz Palak published a new article about The Reason Behind My Career Change: Why I Decided to Leave My Previous Job and Pursue Programming

🆕 Dave Thomas published a new article about Composable Configuration

🆕 Joshua Wood published a new article about Curated dashboards in Honeybadger

🆕 Jijo Bose published a new article about ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2

🕵️ Deep-Dive

🕵️ Victor Shepelev published a new article about The design decisions and evolution of a method definition - Ruby case study

🕵️ Mathieu Eustachy published an article about Memory management explained in Ruby

🕵️ Jp Camara published an article about Your Ruby programs are always multi-threaded: Part 1 - JP Camara

🕵️ Misha Merkushin published a new article about Transactional Outbox: from idea to open-source

🕵️ Stefanni Brasil , Thiago Araujo published a new article about Guide: Quickly Debug a Ruby Gem with Pry and Git Bisect

🕵️ Akshay Khot published an article about Polymorphic Associations in Rails: Why, What, and How

How-TOs 📝

📝 RailsDesigner published a new article about How Layouts Work in Rails

📝 Josef Strzibny published an article about Implementing dark mode with Tailwind and Stimulus

📝 Andres Chacon published an article about Creating a REST API with Ruby on Rails. Chapter 1: Initial Setup and Models

📝 Szymon Fiedler published a new article about How to add index to big table of your Rails app

📝 Stefanni Brasil published a new article about Upgrading a Rails 6.1 app to Rails 7.0

📝 Radan Skoric published an article about How to refresh the full page when submitting a form inside a Turbo Frame?

📝 Vincent Rolea published a new article about Lost In Translation: Using Gettext As A Backend For I18n In Rails

📝 Aestimo Kirina published a new article about Monitor the Performance of Your Ruby on Rails Application Using AppSignal

Related

Elaina Natario published a new article about Absolute positioning with CSS grid

All issues