Writing
Deep dives and practical guides from building software and living in a terminal.
Apr 15, 2026, 3 min read~/javascript
Understanding this in JavaScript
this isn't magic. It just points to whoever called the function. Here's how calling context works in plain JavaScript.
Apr 9, 2026, 5 min read~/javascript
Map and Set in JavaScript: A Practical Guide
Learn when to use Map and Set over plain objects and arrays, with clear examples and real-world use cases.
Apr 9, 2026, 4 min read~/javascript
Destructuring in JavaScript: Write Less, Read More
Learn how destructuring in JavaScript simplifies arrays and objects, reduces repetitive code, and makes your functions easier to read.
Apr 9, 2026, 5 min read~/javascript
Error Handling in JavaScript: Try, Catch, Finally
Learn JavaScript exception handling with try, catch, finally, custom errors, and async error handling in simple practical examples.
Apr 5, 2026, 5 min read~/javascript
JavaScript Modules: Import and Export Explained
Learn how JS modules work, when to use named vs default exports, and why splitting your code into modules makes it easier to maintain.
Apr 5, 2026, 5 min read~/javascript
Array Flatten in JavaScript: Every Approach You Need to Know
Learn how to flatten nested arrays in JavaScript using flat(), recursion, and more. Includes interview tips and step-by-step examples.
Apr 2, 2026, 5 min read~/javascript
Spread vs Rest Operators in JavaScript
Two operators, three dots each, but they do opposite things. Learn when JavaScript expands values and when it collects them.
Apr 1, 2026, 5 min read~/javascript
Template Literals in JavaScript: Write Cleaner Strings
Learn how template literals fix messy string concatenation with cleaner syntax, embedded expressions, and multi-line support.
Mar 14, 2026, 5 min read~/javascript
The Magic of this, call(), apply(), and bind() in JavaScript
Learn how this works in JS and when to use call(), apply(), and bind() to control it with simple examples.
Mar 13, 2026, 4 min read~/javascript
Object-Oriented Programming in JavaScript
Learn OOP in JavaScript with simple examples. Covers classes, objects, constructors, methods, and encapsulation in plain language.