Hey, I'm Zubin Khavarian. I build for the web and write about what I learn along the way.
Writing
May 11, 2026
Soundscapes for Web Games: A Pluggable Howler Implementation - Part 2
Part 2 of the soundscape series. An engine-agnostic class under a hundred lines, a six-function bus adapter contract, and host bindings for React, Phaser, and imperative three.js.
April 20, 2026
Soundscapes for Web Games: The Layer Beneath Your SFX - Part 1
Why most web games sound flat, and what a soundscape system actually is. Part 1: the concept, the three knobs that buy the most realism, and the anti-patterns to avoid.
October 17, 2023
switch(true): The Stylish Way to Simplify Complex Conditionals in React
A practical guide to the switch(true) pattern for collapsing tangled if-else chains in React. When to reach for it, when to avoid it, and how it compares to lookup maps.
October 10, 2023
Crafting Quality Code with Conventional Comments
A practical guide to using Conventional Comments in code reviews: the labels, the decorators, when to use which, and copy-paste examples that move PRs forward instead of stalling them.
September 19, 2023
To Yak Shave or Not: The Art of Procrastination in Software Development
A practical guide to yak shaving: when the detour is worth it, when to stash it, and how it differs from bike shedding.
August 26, 2023
Speedier TypeScript Compilations with skipLibCheck
Unlock faster TypeScript compilations with the skipLibCheck option in tsconfig. Delve into its workings, benefits, and trade-offs to optimize your projects while maintaining type safety.
August 21, 2023
JavaScript Module Systems Unraveled: Which One to Use and When
Dive into the intricate world of JavaScript module systems! 🚀 From ESM to CommonJS, AMD, UMD, and the mystery of .mjs & .cjs extensions; we're breaking it all down. Discover which system fits best for your project and environment.
August 17, 2023
Name Game: Why You Should Favor Named Exports in ES Modules
Advantages of preferring named exports in ECMAScript (ES) modules: clarity, codebase consistency, streamlined refactoring, selective imports, autocomplete support, and ease of optimization.
June 23, 2023
Learning the Basics of JavaScript/TypeScript Decorators
Exploring TypeScript decorators: a meta-programming feature for class declarations and members, offering types like class, method, accessor, property, and parameter decorators, enhancing code elegance and abstraction.