coder-boy

Nam Vo Website

I developed this website to
share my knowledge and satisfy my coding passion

LATEST BLOG

blog cover

Safe Concurrent Updates in Rails with Locks and Atomic SQL

Some applications require handling concurrent updates, like buying concert tickets or transferring money. In these cases, data consistency and atomicity are critical. Any mistake can lead to overbooking, double-spending, or even lost money. This post...
published 2025-08-08 10:21:06 +0700 · 4 mins read
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
blog cover

JavaScript Immediately Invoked Function Expression

Today, we're diving into a common JavaScript pattern you've likely encountered: the Immediately Invoked Function Expression (IIFE). This pattern is used to manage scope and prevent global pollution.1. The ProblemConsider this simple script:// languag...
published 2025-07-17 14:50:21 +0700 · 4 mins read
Interview
Interview
Frontend
Frontend