YYashika Vijayvargiya5d ago · 6 min readWhen to Choose Optimistic vs. Pessimistic Locking in Ruby on RailsNot every concurrent database update needs the same locking strategy. Imagine two users trying to book the last available seat on a flight. Both see that the seat is available and click “Book” almost railswithyashika.hashnode.dev
MMuhammad Zain Ul AbidinOct 13 · 12 min readAt 8 PM, AES Finally Decrypted. Suddenly, My University Degree Made Sense.Disclosure: This story is based on my personal experience and was developed with AI writing assistance. All four accompanying illustrations are AI-generated. It was around 8 PM in 2023. I was working zainbuilds.hashnode.dev
LLakshay TyagiOct 10 · 17 min readWhat 6 Months in Production Taught Me About Biometric Gate Control: Race Conditions, Ghost Fingerprints, and Building a System That Actually Works When I published the second biometric post, I genuinely believed the system was solid. Gate control working. Enrollment from the browser. Auto-start on boot. Android backup bridge. The whole thing. Thimlakshay08-complete-ruby-on-rails.hashnode.dev
MMuhammad Zain Ul AbidinSep 22 · 2 min readRails Has .second, .third, .fourth, .fifth… and Then .forty_twoOne of those tiny Rails details that reminds you this framework has always had a personality. If you’ve worked with Rails for a while, you’ve probably used positional helpers like first, second, or thzainbuilds.hashnode.dev
ZZeroDropAug 3 · 6 min readRSpec Email Testing Without MailCatcherRails developers test email one of three ways, and each verifies something different. ActionMailer::Base.deliveries — the test adapter collects would-be emails in an array, and you assert against it. zerodrop.hashnode.dev
PPavel MyslikJul 29 · 4 min read3 Action Mailer Features I Didn't Know ExistedA few weeks ago I needed to check something in the Action Mailer docs, just a quick lookup. I ended up spending much more time there than expected and found a few features I had no idea existed, even pavelmyslik.hashnode.dev
YYashika VijayvargiyaJul 28 · 5 min readPart 3: Optimistic Locking in Rails – Preventing Lost Updates Without Blocking UsersIntroduction In the previous article, we learned how Pessimistic Locking prevents concurrent modifications by locking database rows. While this guarantees data consistency, it also means other users mrailswithyashika.hashnode.dev
YYashika VijayvargiyaJul 16 · 7 min readPart 2: Pessimistic Locking in Rails – Preventing Race Conditions in ProductionIntroduction In the previous article, we learned why databases need locking and how PostgreSQL uses MVCC (Multi-Version Concurrency Control) to allow multiple transactions to work simultaneously. Howe1railswithyashika.hashnode.dev
YYashika VijayvargiyaJul 13 · 4 min readUnderstanding Database Locking in Rails & PostgreSQL (Part 1) Goal of this article: Build a strong foundation before learning pessimistic locking, optimistic locking, deadlocks, and isolation levels. When I started working with production Rails applications, I r1railswithyashika.hashnode.dev
IinfoJul 2 · 5 min readThe Hidden Cost of AI-Generated Code: Why Your Startup's Tech Debt Is ExplodingAI can write code in seconds. Cleaning up after it can take months. Over the last year, I've used AI coding assistants almost every day. They're fantastic for generating boilerplate, explaining unfamicodecraftbydinesh.hashnode.dev