Profile avatar
siaw23.bsky.social
The Rails Changelog Podcast Host. ⚡️ This Week In Rails co-editor. I post about Ruby & Rails. Boxing. 📺 http://youtube.com/@siaw23 Blog 📝 → https://hayford.dev/ Podcast 🎙️ → https://www.railschangelog.com LinkedIn → https://www.linkedin.com/in/siaw23
28 posts 114 followers 22 following
Regular Contributor
Conversation Starter

@byroot.bsky.social from Rails and Ruby core and senior staff engineer at Shopify, joined me on The Rails Changelog Podcast to talk everything about tuning performance in Ruby on Rails Apps. This episode is packed. Listen: share.transistor.fm/s/23962290

If you write Ruby, read this: https://buff.ly/4gMgkiy by @byroot.bsky.social.

Some awesome news for the Ruby community!

Excited to announce that Jean Boussier—Rails Core team member, Ruby commiter, and Senior Staff Engineer at Shopify—will join me on The Rails Changelog to delve into Ruby on Rails Performance Optimization! Send in your questions! 🔴

Just snagged an early bird ticket to Ruby Community Conference in Kraków—it's practically in my backyard... no way I'm missing it. Can't wait!

I already secured my ticket for #ruby community conference so I can spread the news that early bird tickets are available 🗣 @rosa.codes and @tenderlove.dev on stage in Kraków Feb 28th rubycommunityconference.com Who's coming?

Writing this book was demanding, and while very rewarding, not particularly lucrative. Sales events like Black Friday really help! Please consider adding a rating, review, sharing, or buying a copy. Your support fuels new updates, editions, and future titles. Thanks! andyatkinson.com/pgrailsbook

There's a new official Ruby on Rails Guide on performance tuning that you probably have not seen that I think every Rails developer should read once at least:

I had paid for a Rails Changelog (https://buff.ly/3ZcxIHn) logo earlier. It was too complicated visually and for print. I designed this one myself a few months ago. Presenting the fresh logo for the Rails Changelog, everyone! Keep an eye out for stickers at conference venues! 🥳

Created a new Rails 8 app. Wanted #postgresql not null constraints in generated migrations, w/o editing each migration. Turns out it's now possible. With a bang! 💥 rails generate scaffold Account name:string! www.mintbit.com/blog/migrati... @siaw23.bsky.social @winsletts.bsky.social

Some folks run jobs in transactions causing all sorts of errors in productions. Rails has made Active Job smarter: Active Job will automatically defer a job until after a transaction has committed and drop the job if the transaction is rolled back. Consider the following:

Rails allows you to call EXPLAIN on relations like `User.all.explain` but did you know you could also run EXPLAIN on queries returned by `first`, `last`, `pluck` and aggregate functions like `count`, `average`, `maximum`, `minimum` and `sum`? Optimise away!

RSpec has offered this capability for quite some time, but in case you missed it, if your Rails app uses minitest, you can now execute tests within specified line ranges. For instance, only the tests found between lines 10 and 20 will be executed in this example.

Scrolling through my photos from #RailsWorld, I almost forgot that Rails is set to introduce even more exciting features beyond what's already available in Rails 8. For most apps, ElasticSearch won't be necessary anymore, as Active Record Search will take its place!

TIL about `wait` option's `polynomially_longer` which applies a wait time algo involving some jitter and `Kernel.rand` resulting in wait intervals of 3, 18, 83, ... n seconds. In this example the jobs stops after 10 retries. Sweet!

I was joined by @zverok.bsky.social to talk about Ruby's Data class, numbered block parameters, functional programming in Ruby and a bit about life as a soldier in the Ukrainian Army. 🇺🇦 share.transistor.fm/s/b9763421

First post. Yay! 🥳 I created a video on how to create custom offline fallback pages with Rails! youtu.be/zpDdtVPnVRo?...