Tutorials
Sneak preview: Writing Ruby gem native extensions in Rust – Brian Kung
If this post tickles your fancy, check out the follow-up post: Writing a Rust gem from scratchIn December 2021, Ian Ker-Seymer (@ianks) submitted a pull request to add a CargoBuilder class for handling Rust code in gems, enabling native extensions...
How to Safely Change the Argument Signature of a Sidekiq Job
So the first thing I did was follow the link, which told me I was doing some things wrong concerning best practices. The second thing I did was throw Sidekiq.strict_args! into my Sidekiq initializer, to start raising errors instead of warnings.The...
Why You Should Secure AWS S3 Assets with Cross-Account Backups
Many web apps use AWS S3 buckets for storing static assets like PDFs and images. Unfortunately, the default config makes it just too easy to irreversibly lose all the data. For many projects, it would probably mean that all the team can pack their...
Rails 7 now allows automatic inverse_of detection for associations with scopes | Saeloun Blog
This update ensures that "inverse_of" takes into consideration the relevant scope when calculating the object to store in memory.ActiveRecord has many tricks up its sleeve. One of the many is this seemingly simple association option called inverse...
Enqueue Jobs Quickly with Sidekiq’s Bulk Features - Andy Croll
We often have to enqueue lots of the same type of job at the same time. Perhaps it’s a data migration for all of one kind of object, or a data processing step that‘ll run faster if it’s parallelised.Our focus is often on the potentially large queu...