
Node.js Integration Tests That Exercise the Real Process
Test a real Node.js command with node:test. Check its exit status, stdout, stderr, and generated files, then prove the tests catch three deliberate regressions.
Articles
Development is the broadest category in my writing, so it works as the main archive rather than a narrow subject label. It brings together implementation notes and technical decisions, with delivery lessons from across the rest of the site.

Test a real Node.js command with node:test. Check its exit status, stdout, stderr, and generated files, then prove the tests catch three deliberate regressions.

Solve 3Sum Closest in JavaScript with sorting and two pointers, reducing brute‑force work whilst finding the nearest total efficiently in TypeScript.

Deduping an array involves removing duplicate values to ensure each item appears only once. Here, I explore different JavaScript techniques to achieve this.

Count Coin Change II combinations in TypeScript with coin‑first updates, exact intermediate counts, a worked table, and tests that expose ordered counting.

Use React Suspense carefully with loading boundaries, error boundaries, streaming, fallback design, transitions, and trade‑offs in real interfaces.

try, catch, and finallyGo beyond basic try/catch in JavaScript with finally, custom errors, async error handling, testing, user‑facing failures, and defensive‑code traps.

CSS trigonometric functions open up more expressive layout and animation patterns. This guide covers sin(), cos(), tan(), and practical examples.

typeof Operator: Uses and LimitationsExplore the usage and limitations of JavaScript's typeof operator, understand its quirks, and learn when and how to use it effectively in your code.

Find out why a Next.js child page loses its inherited Open Graph image, then check explicit fallbacks, canonical URLs, and metadata after navigation.

How to build accessible modals, drawers, and popovers in React, with focus management, portals, dismissal rules, and the semantics each pattern needs.

parseInt in JavaScript: The Significance of RadixLearn why parseInt()'s radix argument matters in JavaScript, how numeric bases affect parsing and why specifying the base makes conversion predictable.

Handle Node.js shutdown with real signals, an admission gate, drained HTTP requests, separate upgraded sockets, and a deadline that includes cleanup.

Slow Gatsby builds need a clear choice: optimise plugins, data, and images in place, or move to Next.js when publishing and cache limits justify it.

Solve Target Sum in TypeScript by turning signs into subset counts, handling zeroes correctly, and proving why each input position must be counted once.

Run build‑time SEO checks in Gatsby across routes, metadata, canonicals, headings, sitemaps, schema, redirects, CMS content gaps, and release confidence.

Function.prototype.bind()Explore JavaScript's Function.prototype.bind() method to master function contexts and argument handling, enhancing your code's flexibility and reliability.

Work through Edit Distance in TypeScript, derive the insert, delete, and replace choices, then reduce the table to one row without losing the old diagonal.

When it comes to text‑based sitemaps in Gatsby, gatsby‑plugin‑sitemap falls short. Fortunately, it is straightforward to implement using Node.js and GraphQL.