During a recent code review, I found this pattern scattered throughout the codebase:
Posts for: #JavaScript
Sprite Sheet Splitter: Connected Component Labeling and Browser-Side ZIP Packaging
When working on game development or taking over legacy projects, you often encounter sprite sheets: dozens of small images crammed into one large t…
Building a Sitemap Generator: XML Structure and SEO Best Practices
I was doing SEO optimization for my blog recently when Google Search Console kept complaining about my sitemap. Opening sitemap.xml, the format was…
Set Operations in JavaScript: From Math Symbols to Code
I used to write nested loops when comparing two lists—finding common items, merging with deduplication, calculating differences. The code was messy…
From window.screen to devicePixelRatio: A Complete Guide to Browser Screen APIs
While building a responsive layout debugger, I dove deep into browser screen APIs. Beyond the common screen.width, there’s a lot more to explore….
Understanding robots.txt from Scratch: The Gatekeeper for Search Engine Crawlers
Last week, while investigating indexing issues on our website, I discovered that Google had indexed our /api/ endpoints and /admin/ login pages…
REST API Documentation Generator: From Manual Maintenance to One-Click Automation
Every backend developer knows this pain: the API changed but the docs didn’t; new team members stare at outdated documentation in confusion; during…
Responsive Testing Tool: iframe Sandbox and Device Simulation
Testing responsive designs usually means switching devices in Chrome DevTools or opening multiple tabs. I built a responsive testing tool that cons…
Building a Regex Tester: Real-time Highlighting and Performance Optimization
I was working on form validation recently, dealing with various regular expressions. Testing each regex change required a page refresh - too tediou…
Building a Visual Regex Generator: From Zero to Match
Regular expressions are powerful but notoriously hard to remember. Even experienced developers need to look up syntax for email validation or IP ma…