Welcome to Four Line Friday! Every week on Fridays, I’m sending you four lines of 120 characters or less that help you ship better, more performant Ruby.
I’ve been enjoying your feedback on this little experiment. I’m glad you all like this new format! I have seen a couple of you ask clarifying questions (please do! just reply) which makes me wonder if I should expand the format here so I can use more characters/words, but I also like how short and simple this ends up being…
Here’s your four lines:
1. A retainer client asked me to enumerate what Speedshop’s “design principles” would be. Here they are.
2. Two of the best Ruby event sites have now combined into RubyEvents.org. 6000 Ruby talks on one site!!! Wowza.
3. Tip: if using AWS Cloudfront, make sure your distribution price class is set correctly and isn’t (accidentally) US-only.
4. Tip: present? on a belongs_to association is usually unnecessary. Just see if the foreign key column (*_id) is nil.
Thanks for reading! We’ll see you next Friday.
I’m Nate, the author of The Complete Guide to Rails Performance, a maintainer of Puma, and owner of the Rails perf consultancy Speedshop. You’re on this email list because you either bought something from me or signed up in the past.
In the meantime, follow me on X, Mastodon, or Bluesky, or consider buying:
• The Complete Guide to Rails Performance, my “reference manual” for all things Rails perf.
• Sidekiq in Practice, a workshop to improve your Sidekiq operational skills.
• The Rails Performance Apocrypha, a meandering fun read about a potpourri of Rails perf topics.
Or maybe we should work together? Over 10 companies now have me on permanent retainer to help supercharge their performance and platform engineering.
-Nate
|