Recently, I was building a file upload feature that needed client-side hash calculation for integrity verification. I’ve always used third-party li…
Posts for: #JavaScript
CSS Grid in Practice: From repeat() to grid-template-areas
I was refactoring an admin dashboard recently. The layout seemed simple at first: fixed sidebar on the left, main content on the right. But the mai…
Deep Dive into grep: From Regex to Performance Optimization
Recently, while debugging production logs, I needed to filter specific errors from a 2GB log file. Running grep "ERROR" app.log took 5 minutes wi…
From Glob Patterns to .gitignore: Building a Smart Generator
Started a new project last week. After git init, I needed to add .gitignore. Opened GitHub’s gitignore template repo, copied, pasted, manually …
Building a Conventional Commits Generator: Stop Writing Bad Git Messages
We’ve all been there. You run git log on a project and see messages like “fix”, “update”, or the infamous “asdf”. Six months later, you have no i…
Git Cheatsheet Architecture: From Command Organization to Search Filtering
My team recently got some new interns who keep forgetting Git commands. I tried several cheatsheets online, but they were either static pages witho…
Building a GIF Maker from Scratch: LZW Compression and Median Cut Color Quantization
Written: 2026-04-30 12:39
From Theory to Practice: Deep Dive into Flexbox Layout Generator
Building a dashboard recently, I kept running into complex layout requirements: centered navigation bars, vertically distributed sidebars, self-ada…
Beyond File Extensions: Detecting File Types with Magic Bytes
A colleague once sent me a file with no extension. “What’s this?” he asked. I dropped it into a hex viewer, saw 89 50 4E 47 0D 0A 1A 0A at byte 0…
File Hash Calculator: Implementing MD5/SHA-1/SHA-256/SHA-512 with Web Crypto API
You downloaded an installer, and the official site gave you an MD5 checksum to “verify file integrity.” How? Terminal commands? Install software? T…