
Dynamic Sizing with CSS min()
In CSS, the min() function allows us to set the smallest value from a set as the value of a CSS property. This can be hugely useful in responsive development.
Articles from more than two decades of building, rebuilding, debugging, and leading web projects.

min()In CSS, the min() function allows us to set the smallest value from a set as the value of a CSS property. This can be hugely useful in responsive development.

Implement Insert Delete GetRandom in TypeScript using a dense array and index map, with swap removal, equal sampling chances, and deterministic tests.

Test JSX‑driven content in Cypress by comparing rendered output, extracting text, handling order, avoiding brittle assumptions, and respecting performance.

Angular change detection explained through zone triggers, OnPush, signals, template cost, manual checks, and practical rendering optimisation at scale.

Why view source stopped being enough for modern web checks, and how rendered HTML, hydration, metadata, schema, crawl paths, and client output changed audits.

Validate mixed parentheses and brackets in TypeScript with a stack, check nesting order, and see why separate counters and two pointers are not enough.

calc()A discussion on how to use CSS calc() for dynamic calculations directly within your styles. Learn to mix units, perform calculations, and improve responsivity.

Sort an array in TypeScript with stable merge sort, then compare an in‑place heapsort implementation, including space costs, duplicate values, and useful tests.

.then() in Modern JavaScript.then() still matters in modern JavaScript. This guide explains promise chaining, return values, and why Promise.prototype.then() remains useful.

Understanding stopPropagation and preventDefault is key to handling events in JavaScript. Here, I explore their differences and when to use each.

An exploration of solutions to the 'Letter Combinations of Phone Number' problem using front‑end and TypeScript: recursion, backtracking, and iteration.

Compare a Next.js image's rendered width with its sizes declaration, selected URL, and response bytes. Test narrow cards, high‑density screens, and bad hints.

vh and vwUse JavaScript and CSS custom properties for viewport sizing, with working CSS fallbacks and clear limits around browser controls, keyboards, and scrollbars.

Add seeded randomisation to an SSR Gatsby project, keeping content order deterministic across builds whilst still rotating destination‑style content.

Convert Roman numerals to integers in JavaScript, covering subtractive notation, invalid input caveats, and a clear TypeScript implementation.

Convert integers to Roman numerals in JavaScript, covering symbol rules, greedy matching, edge cases, and a clear TypeScript implementation.

Automate copyright year updates across JavaScript, React, Angular, Vue, jQuery, PHP, and WordPress so footers do not go stale each January across stacks.

Choose where React state should live, comparing local state, context, URL state, server data, cache state, mirrored values, and ownership questions.

How to solve LeetCode Coin Change with dynamic programming, and why the obvious greedy approach fails on exactly the cases worth understanding in interviews.

The JavaScript module pattern explained through closures and private state, plus the architectural lessons it still teaches modern developers today.

setInterval()A discussion about using JavaScript's setInterval for repetitive tasks. Manage intervals effectively and understand best practices for time‑bound executions.