The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
đșđŠ New version of truemail đ€ has been released đ
In the latest truemail release has been added ability to use custom logger for event logging. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Upcoming March 2024 Montreal.rb Talk "Frontend Ruby with Glimmer DSL for Web"
I will be giving a Montreal.rb Ruby meetup talk titled âFrontend Ruby with Glimmer DSL for Webâ on Wednesday, March 6 2024 at 7pm ET (doors open at 6:15pm ET). The event will be hosted at Lexop (Montreal, Quebec, Canada). Click below to read the talk description. In my opinion, this is the most exciting Ruby topic in 2024 for doubling productivity and halving cost and time in developing and maintaining Rails Frontends compared to using inferior JS technologies like React, Angular, Vue, Svelte, etc⊠I strongly believe this will be the most important Ruby investment in 2024. Anyone who ignores it will be stuck in what is like the Ice Age of Frontend Development by comparison, kinda like riding horse carriage compared to driving a Ferrari. https://andymaleh.blogspot.com/2024/02/upcoming-march-2023-montrealrb-talk.html
Shrinking UUIDv7 Primary Keys
Using UUIDv7 instead of serial integers as primary keys in SQL databases comes with quite a few advantages. Thereâs a price tag in terms of speed and memory⊠whether acceptable or not, thatâs your call. But at least you donât have to live with those UUIDs eating up 36 characters in your URLs Honey, letâs shrink them UUIDs!
Rails 7.1 Allows ActiveRecord::Relation#explain To Accept Options
Rails 7.1 introduces analyze and verbose as ActiveRecord::Relation#explain options to give us deeper insight into query performance. [more inside]
Two insights from using Sorbet in a production app
I wrote a small article about two insights I had about using Sorbet in a large Rails app:
Exploring the FFaker Gem - A Comprehensive Guide
https://www.shakacode.com/blog/exploring-the-ffaker-gem/
How to switch ActionMailer to a backup email provider in real time
A new in-depth guide by Garrett Dimon.
A decent VS Code + Ruby on Rails setup
I just published a VS Code + Ruby on Rails extensions guide. Alongside that, I released a VS Code extension pack with all the extensions I use!
Rails 7 pagination with Kaminari tutorial
Adding pagination with Kaminari, an alternative to the Pagy gem [more inside]
Business Class 1.6 with direct uploads, Kamal CI/CD, and more
Business Class, a Ruby on Rails starter kit, gets a new release. Direct uploads, antispam, blog post previews, and Kamal CD.
Building a 2 Terabyte Database For My Postgres Course | Rubber Duck Dev Show 116
In this episode, we discuss how Creston built a 2 terabyte database for his new Postgres performance optimization course: https://www.rubberduckdevshow.com/episodes/116-building-2-terabyte-database-for-postgres-course/
Turbo Sortable, Paginated Tables in Rails 7
Article on how to create sortable, paginated tables powered by Turbo and Rails 8 [more inside]
v0.5.11 of the aia was released this weekend
Announcing the release of aia (AI Assistant) gem, version 0.5.11. For those of you who are passionate about enhancing your command-line interface (CLI) with AI capabilities, youâll find this update particularly exciting. [more inside]
Be more GARY: Upping your RSpec Game
The DRY principle (Donât Repeat Yourself) is great for keeping your executable code clean, but it can get in the way of writing meaningful, readable, understandable tests. Introducing the GARY principle â Go Ahead, Repeat Yourself. [more inside]
How to Dual Boot Ruby on Rails In Docker
Starting with Rails 7.1, Docker files are added by default in new applications, but Docker has been popular for Rails development for many years before that. [more inside]
Presence, NULL, and Product Requirements in Rails
A short article why NOT NULL constraints are essential for long-term product health. Read it at https://www.gregnavis.com/articles/presence-null-and-product-requirements-in-rails.html
Ruby Dev Summit 2024 Interview w/ Andy Maleh
Recently, I was interviewed for the 2024 Ruby Dev Summit, and a video podcast of the interview was just posted online and is available to watch for free for the next 24 hours (Fri, Feb 16 3pm ET till Sat, Feb 17 3pm ET). Also, an audio podcast was published in the Ruby Rogues podcast. [more inside]
The joy of creating your own toolkit
Read about the Neovim plugin that makes running RSpec from within Neovim effortless, and the story of its latest update. https://dev.to/melopilosyan/the-joy-of-creating-your-own-toolkit-34fl
Rails 7.1 allows resetting singular associations
Rails 7.1 allows resetting the cache on singular associations by querying the database again to retrieve the associated record. [more inside]
Ruby-on-Rails ERB vs HAML
This is an opinionated article about ERB and HAML with Rails. Letâs compare each other and pick a winner. https://bootrails.com/blog/erb-vs-haml/
The Unpredictable Nature of Flaky Tests in Rails Applications (And How to Debug Them)
How many times have you or someone on your team brushed off a failing build with a casual, âItâs fine, itâs just a flaky specâignore itâ? [more inside]