YVYashika Vijayvargiyainrailswithyashika.hashnode.dev·3d ago · 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. Howe00
YVYashika Vijayvargiyainrailswithyashika.hashnode.dev·6d ago · 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 r00
Iinfoincodecraftbydinesh.hashnode.dev·Jul 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 unfami00
YVYashika Vijayvargiyainrailswithyashika.hashnode.dev·Jul 1 · 6 min readPostgreSQL Index Types Explained with Real Rails ExamplesPart-1 Understanding Indexes before learning Index TypesNow that we understand what indexes are and why they matter, let's explore the different types of indexes available in PostgreSQL and when to us00
YVYashika Vijayvargiyainrailswithyashika.hashnode.dev·Jun 23 · 3 min readUnderstanding Indexes Before Learning Index TypesBefore diving into different types of indexes, let's understand why indexes are needed. Imagine a library with 100,000 books. If someone asks for a book named "Clean Code", there are two ways to find 00
YVYashika Vijayvargiyainrailswithyashika.hashnode.dev·Jun 8 · 4 min readRails Performance Optimization: Fixing N+1 Queries with includes, preload, and eager_loadWhat is an N+1 Query? Suppose we have the following models: class User < ApplicationRecord has_many :posts end class Post < ApplicationRecord belongs_to :user end We fetch all posts: @posts = Po00
RRazvaninezlogs.hashnode.dev·Jun 5 · 4 min readEvery engineering team has a translator. I wrote the thing that translatesEvery engineering team I've worked on has had the same unspoken job title. Nobody's hired into it. It just lands on whoever's been there longest and answers Slack the fastest. The translator. Someone 10
SSrinathinblog.vsrinath.dev·Jun 1 · 4 min readRuby-lsp keeps crashing in your monorepo? Here's exactly how to fix it in ZedRuby-lsp crashes in monorepos because Zed launches it from the wrong directory. Your Gemfile is one level down, bundle can't find it, and the server loops restarting. Same root cause breaks your test 00
LTLakshay Tyagiinimlakshay08-complete-ruby-on-rails.hashnode.dev·May 30 · 19 min readFrom Polling to Production: How I Upgraded My Biometric Integration with Gate Control, Auto-Enrollment, and 24/7 Reliability👉 Read the original post first: Connecting a Biometric Fingerprint Device to a Rails Web App Using Python The Problem with "Good Enough" When I published the first biometric post, the system worked. 00
STSudheer Tripathiinblog.dumbbellcode.in·May 25 · 7 min readMaking database integration tests 4X faster: Practical tipsYou push changes to CI, a 20-minute test run forces developers to wait or get distracted, so test failures are often noticed much later. Frameworks such as Laravel, Django & Ruby on Rails make it eas75V