Ruby on Rails | rubyclub
1.53K subscribers
215 photos
1 video
265 links
Software Writer @yegorckv
Download Telegram
YJIT by default if running Ruby 3.3+ for latency improvements, configuration for ActiveRecord::Core#inspect, and more! Catch up with all changes at:

👩‍💻 rubyonrails.org
Please open Telegram to view this post
VIEW IN TELEGRAM
Ruby 3.3.0 Preview 3 Released — With just 39 days till Christmas and Ruby 3.3, it’s time for another preview release. 3.3.0-preview3 retains all the prior 3.3 improvements like those to YJIT performance, but also introduces the M:N thread scheduler and the Prism Ruby parser (formerly YARP).

YJIT is the Most Memory-Efficient Ruby JIT — Shopify’s tireless work on YJIT has paid off in many ways, including a ~15% speed-up for their storefronts. The team’s methodology on benchmarks, however, goes beyond performance to warm-up time and memory (RSS) size. All in all, YJIT is shaping up to be what we hoped it would be: a great boost to Ruby and Rails development.
💎Ruby Tip💎 Interactive debugging without the need for gems

Discover a simple and fast way to debug in Ruby without installing additional gems. With the Binding class and the integrated IRB console, you can explore and modify the execution context to resolve errors efficiently.

❤️Read more
Please open Telegram to view this post
VIEW IN TELEGRAM
Ruby on Rails #154 Avo 3 upgrade

📺 AVO 3 was released a few days ago
Please open Telegram to view this post
VIEW IN TELEGRAM
Today we're introducing the official Rails Job Board, a platform for Rails developers to find their next role (and companies to find their next Rails developer). Get started and find your next career match here:

Rails job board
You know the city, now save the date: #RailsWorld 2024 will take place Sept 26 & 27. Mark your calendars! More info (tickets, sponsorships, cfp. etc) coming soon.
👩‍💻 Rails Organization

In this episode, we look at refactoring a model with a few different approaches; modules, classes and concerns. We'll explore each implementation and when I'd use one over the other.

Episode
Please open Telegram to view this post
VIEW IN TELEGRAM
Better Mailer Previews: A Way to Preview ActionMailer Email Templates — A Rails engine that builds on top of native Rails mailer previews with enhancements including seeing live, resizable previews, and the ability to forward previews to an email address.
Ruby 3.3.0 Release Candidate 1 Released — We’re now just 11 days from the final release, but Shopify is already using this in production. There are few changes since preview 3, though I note ‘code GC’ is now disabled by default, but this seems like a good thing for performance in most cases.
DHH about Rails 8

The primary mission for my contributions toward Rails 8 is now crystal clear: PWA. We can extract all the finickiness around web push notifications, for example, and make it trivially easy to use.
Enqueue Multiple Jobs Together with perform_all_later in Rails

Are you still looping over the list of jobs to enqueue them individually? This post explores the new perform_all_later method in Rails, which was introduced in Rails 7.1 and lets you enqueue multiple jobs together to reduce the round-trip to the job backend, like Redis or the database.
Digging into Turbo 8's Morphing Feature in Ruby on Rails

The gist of the blog post and talk is that Turbo frames and streams are useful but often cumbersome to integrate since they are highly focused containers of logic.

They won’t be going away but might be more of a _special-use_ tool coming up with the introduction of morphing which could be a more convenient and useful “default” much like the standard full-page reloads of historical Rails apps.
DHH about Rails 8

Rails 8 is slated for a 2024 release. This milestone will gather some of the intentions on what it'll include.

💻 https://github.com/rails/rails/milestone/87
Please open Telegram to view this post
VIEW IN TELEGRAM
Just like image_tag, audio_tag and video_tag can now accept Active Storage attachments. From Rails 7.1 they can generate audio and video tags when passed an attachment without the need to call polymorphic_path.
Daily Log code deep dive - Strada

The second video in a series diving into the code of Daily Log, an open source Ruby on Rails and Turbo Native app.

This video focuses on building native Swift components with Strada. I cover how to wire up a native button powered by HTML and a Stimulus controller.

📺 View on YouTube
Please open Telegram to view this post
VIEW IN TELEGRAM
Here's what's coming in Rails 8

Work on Rails 8 is starting, so I dug through the official GitHub milestone to break down all the upcoming goodies for you. There's plenty coming, including Solid Queue, Solid Cache and Kamal becoming defaults, better support for PWAs, an official LSP, and more!

Read more →
8 Turbo 8 "Gotchas"

As the final release of Turbo 8 nears, there are a few “gotchas” worth knowing about that will make life easier as you start updating existing Rails Turbo apps to take advantage of all the new features that Turbo 8 offers, like page morphs

fly.io/ruby-dispatch
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 This Week in Rails is out! Among the updates:

- the default number of threads in Puma config has now been updated from 5 to 3
- Object#with block support added
- 'explain' support for methods like last, pluck and count
Check it all out here:

❤️ this-week-in-rails
Please open Telegram to view this post
VIEW IN TELEGRAM