🇺🇦 #602 — May 5, 2022 |
Ruby Weekly |
What Do You Think of 'Scoped Gems'? — Here’s an interesting proposal whose author wants more eyes on. The basic idea is that gems can be scoped to specific users – for example Matt Muller |
On Ruby 3.1’s Incompatible Changes to Its YAML Module (Psych 4) — Ruby 3.1 introduced Psych (Ruby’s core YAML parser) 4.0, a major upgrade that breaks compatibility in how it loads files by default and how it handles arguments (dropping support for legacy positional arguments). Daniel Aleksandersen |
Couchbase Capella DBaaS: Store in JSON, Access with SQL — Build faster with in-memory performance, automatic replication and scaling. Try it now for free and be live in under 3 minutes. Couchbase sponsor |
▶ Active Record Tricks — Tips and tricks videos are always popular, and this one covers a lot in just 12 minutes including read only attributes, inserting and upserting, toggling booleans, and single table inheritance. Drifting Ruby |
Breaking the Monolith at Twitch — Twitch is one of a large group of successful companies that began life running as a monolithic Rails app (a la GitHub or Twitter) but they’ve written about where they went from there, how Go entered the picture, and their current practices which are, sadly, mostly Ruby free. (Note there’s a part two.) Mario Izquierdo (Twitch) |
Quick Bits:
|
|
📕 Articles & Tutorials |
Bootstrapping with Rails Generators and Templates — Rails is famed for its ‘batteries included’ approach of having most things you need ready to use, but what about going a step further with more of your app defined in advance? Hans-Jörg shows off generators and templates and how they can help. Hans-Jörg Schnedlitz |
Hosting Ruby Apps (for Free) on Oracle Cloud with Dokku — It’s interesting to see a different cloud offering getting mentioned once in a while. Oracle Cloud has a rather curious free tier with a lot of potential, though the ideas in this post could apply to almost any VPS. Artem Avetisyan |
Improve Your Specs' Quality with Branch Coverage — Enable branch coverage in SimpleCov (the code coverage tool) to make sure you aren’t lulled to sleep with line coverage and end up leaving bugs in your code. Karol Bąk |
Debug Ruby Apps Without Stopping Them in Prod. Try Rookout Free Today Rookout sponsor |
How to Avoid Race Conditions in Rails — There are many ways to avoid race conditions, and Rails/ActiveRecord has a solution for each one so knowing the benefits of each approach makes sure you grab the right tool for the job. Godwin Ekuma (Honeybadger Developer Blog) |
How to Run a Virtual Retreat — Something more companies have surely been doing in the last year or two. OmbuLabs |
Starting a Blank Jekyll Site with Tailwind CSS in 2022
|
Using RSpec Block Syntax for Message Expectations
|
🛠 Code & Tools |
SuperDiff 0.9: View Differences Between Complex Data Structures in RSpec — When you’ve got something that’s expected and what actually came back, distinguishing the difference between them can be a pain. This attempts to make it easier. Elliot Winkler |
Sequel 5.56.0: The Database Toolkit for Ruby. — Jeremy Evans |
U Up? Let People Know with Beautiful Status Pages from Honeybadger 😘 — We've added support for custom domains and branding on our public status pages - free on all current plans. Honeybadger sponsor |
N1Loader: A Loader to Solve N+1 Issues with Active Record 'for Good' — I think the author’s enthusiasm speaks for itself: “This gem has proved itself stable in production and deserves a chance to help many engineers around the world. It’s especially great as it fits amazingly with GraphQL and makes it so easy to fix any kind of N+1 issues!” Evgeniy Demin |
SmarterCSV 1.6: Smarter Importing of CSV Files as Array(s) of Hashes
|
sidekiq-scheduler 4.0: Lightweight Job Scheduler Extension for Sidekiq
|
Kredis 1.2: Higher-level Data Structures Built on Redis
|