
Dynamic Array Manipulation with JavaScript's splice()
Discover how to master array modifications with JavaScript's Array.prototype.splice(), your all‑in‑one method for removing, adding, and replacing elements.
Articles from more than two decades of building, rebuilding, debugging, and leading web projects.

splice()Discover how to master array modifications with JavaScript's Array.prototype.splice(), your all‑in‑one method for removing, adding, and replacing elements.

Swearing in the workplace is generally taboo, but not completely off‑limits. Use common sense, consider your audience, and remember that context is everything.

Reverse integers in JavaScript with sign handling, overflow checks, TypeScript examples, and the trade‑offs between string and maths approaches.

filter() Method in JavaScriptUse JavaScript filter() to create arrays of matching items, with callback syntax, object filtering examples, readable predicates, and practical tips.

Career advice for engineers moving into leadership, with honest guidance on credibility, delegation, decision‑making, and what really changes day to day.

Derive Climbing Stairs in TypeScript from the final move, explain the empty route, and compare table and two‑counter solutions with independent counting checks.

How to migrate e‑commerce product and category pages to Next.js without losing SEO value, including URLs, filters, schema, canonicals, and redirects.

split()Use JavaScript split() for string manipulation, including delimiters, limits, regular expressions, edge cases, parsing, and practical data handling.

Use binary search to find feasible limits, with monotone predicates, safe integer bounds, sentinel results, shipping‑capacity examples, and independent checks.

Using JavaScript we can use the Date() function to create Date objects, and then use less/more than comparisons to work out if the date falls in between.

substring() vs. substr()A practical guide to JavaScript substring() and substr(), including indexes, lengths, swapped arguments, browser support, and which one to use.

Keep private TanStack Query data inside the right Next.js request. Test overlapping users, hydration freshness, failed queries, and account changes.

A practical framework for choosing rewrite, refactor, or strangler paths, based on risk, delivery pressure, change cost, and organisational appetite.

Solve the Two Sum problem efficiently in JavaScript with Hash Map or Two Pointers. Learn how to find pairs of numbers that sum up to a given target.

useEffect HookUnderstand the empty dependency array in React's useEffect, including after‑commit setup, cleanup, remounts, development checks and reactive dependencies.

slice()Explore the capabilities of JavaScript's Array.prototype.slice() for creating subarrays, cloning arrays, and more, with no changes to the original.

Find first and last positions in a sorted TypeScript array using lower and upper bounds, with duplicate‑heavy examples and independent linear‑oracle tests.

Vuex vs. Pinia explained with real trade‑offs, including API design, TypeScript ergonomics, migration paths, and when each choice still makes sense.

sort() MethodUnderstand JavaScript's sort() method, including in‑place mutation, string defaults, numeric comparators, object sorting, and unexpected ordering behaviour.

Write binary search in TypeScript with a clear interval invariant, safe midpoint calculation, worked traces, and tests for the endpoints people tend to miss.

matchMedia MethodIn the past, we used event listeners on the Window to determine the physical dimensions of a document. Using matchMedia allows us to use media query syntax.