Short Ruby News - Edition #102

Rails 7.2 released a lot of updates about fall conferences, some exciting launches and discounts, inspiring code samples, and good code design discussions.

You can jump directly to a section:

πŸš€ Launches & πŸ“… Events

πŸ‘‰ All about Code and Ruby: πŸ’» Code, πŸ“Code Design,πŸ’‘Around, ❀️ Why Choose Ruby

🧰 Gems, Libraries, and Updates: πŸ†• New, 🧰 Updates

🀝 Related (but not Ruby-specific)

[Partner β¬‡] friendlyrb.com

I am one of the co-organizers of Friendly.rb Ruby Conference, and I am very enthusiastic about this conference. Read my reasons why you should attend this conference at Why you should Join Friendly.rb in September 2024TLDR: We have a friendly atmosphere and amazing speakers. Enjoy a relaxed schedule, deep dives into Ruby, Rails, and Hanami, and a unique group activity on 20 Sept. Connect with 130 passionate Ruby developers. Register now at friendlyrb.com

πŸš€ Launches and discounts

πŸš€ Chris Oliver is working on SellRepo that lets us sell access to Github repos

πŸš€ Akshay Khot published a book about Rails Router:

πŸš€ Nate Berkopec announced the release of the transaction in Japanese of the book Ruby on Rails γƒ‘γƒ•γ‚©γƒΌγƒžγƒ³γ‚Ή をポクγƒͺフゑ

πŸš€ Andrea Fomera announced a 10% discount for their course about Learn Hotwire by Building a Calendar

πŸ“… Events

πŸ“† Events happening this week if you want to attend (source: RubyConferences)

πŸ“… I shared a thread about why participate in Friendly.rb (and, in general, smaller conferences). Here is just the first part of it, and you can read it full on my blog

πŸ‘‰ All about Code and Ruby

πŸ’» Code Samples

πŸ’» Emmanuel Hayford shares the new update on Rails 8 that updates routing mapper implementation to use keywords instead of hashes

[Sponsor ⬇]  snappify.com 

Snappify is a powerful design tool that enables developers to create stunning presentations and videos. Say goodbye to PowerPoint or Keynote and leverage snappify’s ability’s to create technical presentations with various ways to animate your code snippets.Get started with a generous free plan at snappify.com

οΈπŸ’» Matt Swanson shared that rendering turbostream.html.erb template might be a code smell and provided a solution:

πŸ’» ️️Jeremy Smith presents a way to call Turbo Stream replace with the new morph method

οΈπŸ’» Cayter shared a tip about using Active Record Encryption:

οΈπŸ’» Alazycoder shared a code sample about removing noise with LogStasher:

οΈπŸ’» Axel Kee shared an a tip on TimeZone.new

οΈοΈπŸ’» Ruby Cademy shared a code sample using the highlight method:

οΈπŸ’» Cayter shared a tip on ActiveStorage and Inertia.js

οΈπŸ’» Ahmed Nadar shared a tip on broadcasting asynchronous:

οΈπŸ’» AlemaΓ±o shares how Active Storage lets you specify a folder path when uploading files to a service.

οΈπŸ’» Kevin Vanzandberghe shared a rails active record tip:

Peter Cai adds a warning to the above issue:

οΈπŸ’» Ruby Cademy shared about using the block_format:

πŸ“ Thinking about Code Design

οΈπŸ“ ️Kyrylo Silin shared how to use service objects in rails projects

Here are some of the replies (without going into full mode pro or against service objects):

οΈπŸ“ Nate Berkopec asked about a good use case of using array types in DB:

Here are some of the replies (but there are a lot more there):

οΈπŸ“ Mike Dalessio shared about running application test suite with all warnings enabled (see Add `-Werror` flag to turn Ruby warnings into errors)

️ οΈπŸ“ ️Study Every Day shared their thoughts about mixing data and code:

Here is Lucian’s take on the same:

οΈπŸ“ Kay Rhodes shared about `public` as being a method that should not be overridden:

οΈπŸ“ Michael Chaney shared about finding the balance between actions specified by data attributes and actions that are implemented in javascript controllers when using Hotwire:

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

πŸ’‘ Jorge Manrubia shared about the next 37Signal libray that will be announced at Rails World, but it remains a secret so far:

πŸ’‘ Ruby On Rails announced that  Rails v7 guides are now using the new design:

πŸ’‘ Ruby On Rails shared two documentation PRs that are waiting community feedback:

Rafael FranΓ§a replied that if the code will show deprecation loudly it will not be included in the release notes:

πŸ’‘ Kyle Fox asked about the best resources for Ruby on Rails:

Here are some suggestions:

And there are a lot more resources shared in reply to that question.

πŸ’‘Lucian Ghinda encourages to invest in junior ruby devs

πŸ’‘ Robby Russell shared about upgrading Rails:

πŸ’‘ Stephen Margheim asked about the best Rails app templates:

Here is a list of the links shared in replies (not all of them are Rails templates in the sense that they cannot be used for rails -m):

❀️ Why Choose Ruby and Rails

❀️ Mohammad Bagher shared what the discover about Ruby:

❀️ Nate Berkopec never misses a chance to compliment the simplicity of rails

❀️ PaweΕ‚ DΔ…browski quotes one quirky disadvantage of Ruby and Rails

❀️ Ajey Gore shared that Rails is still the best framework for CRUD apps:

they later added:

❀️ Rafael PeΓ±a Azar shared why they like Rails:

🧰 Gems, Libraries, Tools and Updates

πŸ†• New Gems and Repos

🧰 Updates

The highlights are:

Samuel Williams added about this version:

🧰 Keygen announced that Keygen is now Fair Source

🧰 Karl Oscar Weber  announced a new version of Camping - version 3.2.6

🧰 Andrea Rocca announced a new version of their rails template Rails Daisy Solid Template

🧰 Peter Solnica shared a thread about an upcoming change to Rails 8 β†’ Add structured logging next to developer logging:  

🧰 Josh Pigford announced a new version of Release v0.1.0-alpha.14 Β· maybe-finance/maybe

🀝 Related (but not Ruby-specific)

🀝 Jeremy Smith shared a video about about building their new project: Liminal

🀝 Andrea Bosoni shared about development and marketing:

🀝 Lucian Ghinda shared a thread about writing good release notes:

🀝 Marcel Pociot shared about a Google API to get favicon from any domain:

🀝 Privv shared about the possibility to add notes to git commits:

🀝 Hussein Nasser shared about avoiding SELECT *

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

πŸ“š  Charles Oliver Nutter shared their slides about 20 Years of JRuby

πŸ—ž Newsletters

πŸ—ž Any Cable published a new edition about Any Cables Monthly #22: UI kit preview

πŸ—ž Hotwire Weekly published a new edition about Week 32 - CTOs choose Hotwire, Image Upload Preview, and more! β€’ Buttondown

🎧 Podcasts

🎧 Code And The Coding Coders Who Code It published a new podcast about  Ruby on Rails + SQLite with Stephen Margheim

🎧 Ode To Rails Conf published three new episodes with Chris Oliver Collin Jilbert,  Jason Charnes

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

πŸŽ₯ Yaroslav Shmarov published a new video about SupeRails | #182 Build an OpenGraph image generator

πŸŽ₯ Rob Whittaker published a new episode abou  Resurrecting an Untouched Rails App

πŸŽ₯ Drifting Ruby published a new video about Processing Large Jobs

πŸŽ₯ Chris Oliver published a new video about How to Rate Limit Requests in Rails 7.2 (Example) and about How to use Dev Containers with Rails (Example)

πŸŽ₯ Yaroslav Shmarov published a new video about SupeRails | #182 Build an OpenGraph image generator

πŸŽ₯ Adam Mc Crea published a new video about How I Built It: Calendar UI with Turbo Frames, Tailwind, and Alpine.js

πŸŽ₯ Josh Pigford published a new video about Coding with Cursor: Session 1

πŸŽ₯ Graceful.Dev published a new video about Ruby: #fetch for defaults

πŸŽ₯ Lukasz Reszke published a new video about Get rid of primitive obsession. Introduce value objects

✍🏾 Articles

What’s new πŸ†•

πŸ†• Chad Pytel published an article about Ruby on Rails is great for AI

πŸ†• Kelly Gebo published an article about Why CTOs are choosing Hotwire and Ruby on Rails

πŸ†• Blazej published an article about From Real Estate to Ruby - Why I Chose Ruby on Rails

πŸ†• Miles published a new article about Rails is 20

πŸ†• Kasper Timm Hansen published a new article about My take on Refactoring Rails’s initializers

πŸ†• John Vester published an article about Buh-Bye Webpack and Node.js, Hello Rails and Import Maps - DEV Community

πŸ†• Justin Toniazzo published an article about Supercharge your Rails logs with tags

πŸ†• Justin Searls published an article about What one must pass to includes() to include Active Storage attachments

πŸ†• Jaimy Simon published an article about Rails 8 introduces a basic authentication generator - BigBinary Blog

πŸ†• Josef Strzibny published a new article about Introduction to Minitest Mocks

πŸ†• Michael Keene published an article about The Strangest Ruby Syntax: PatternMatching

πŸ†• Julian Rubisch published a new article about Betterstimulus | Dependency Inversion Principle

πŸ†• Krzysztof Kamil published an article about The Business Value of Refactoring and Testing

πŸ†• Haseeb Annadamban published a new article about Understanding The Output of EXPLAIN Command As a Rails Developer

How-TOs πŸ“

πŸ“ Max Braga published an article about Migrating ActiveJob to Sidekiq Job: Why and How

πŸ“ Kyrylo Silin published a new article about How to add Mission Control to your Rails app and protect it with Basic Auth

πŸ“ Martin Streicher published an article about An Introduction to Nix for Ruby Developers

πŸ“ Owais published a new article about Formatting and Linting ERB files with Zed on save

Reply

or to participate.