
Using Next.js Proxy for Route Protection
Protect Next.js routes with Proxy, formerly Middleware, using authentication, authorisation, matchers, API request checks and current terminology.
Articles from more than two decades of building, rebuilding, debugging, and leading web projects.

Protect Next.js routes with Proxy, formerly Middleware, using authentication, authorisation, matchers, API request checks and current terminology.

place-contentUse CSS place‑content to align grid and flex content, comparing align‑content, justify‑content, place‑items, syntax, examples, and layout limits.

Connect a Next.js production error digest to server records, request IDs, and route context with onRequestError, without logging private request data.

Fixed quote, day rate, and retainer pricing for senior web development, explained through scope, risk, delivery, ownership, and platform quality.

Implement Pow(x, n) in TypeScript using exponentiation by squaring, with negative exponents, JavaScript bitwise traps, and sensible floating‑point tests.

Why static generation became more complex as CMS previews, ISR, cache invalidation, build queues, e‑commerce data, and platform expectations grew.

place-itemsCSS place-items is a shorthand property that aligns items inside grid and flex containers. Here, we discuss its syntax, use cases, and practical examples.

Template‑driven vs. reactive Angular forms, and how to choose the right model for validation, scale, testing, and maintainable form logic in real apps.

How e‑commerce front‑end work moved from Liquid templates to headless storefronts, and what teams risk when they underestimate data, checkout, and operations.

Converting between camel case, snake case, kebab case is a common task in JavaScript. Here, I explore methods using regular expressions and string manipulation.

How to solve Trapping Rain Water with the two‑pointer approach, and the simple invariant that makes the O(n) solution click under interview pressure.

Choose JavaScript number, BigInt, or digit strings for algorithms, with safe‑integer limits, bitwise traps, exact counts, and floating‑point comparisons.

A practical look at AI in web development, where it helps, where it creates review burden, and why generated code still needs senior judgement.

How lazy loading in Angular improves performance, where route‑level splitting helps most, and how to avoid messy boundaries and loading states in larger apps.

Find a maximum‑probability path in TypeScript using a max heap, product‑based relaxation, stale arrivals, zero‑probability edges, and numerical tests.

Temporal Dates and Times APIJavaScript Temporal explained with Unix timestamps, Date conversions, calendar arithmetic, and daylight saving examples, plus browser and runtime support.

Compare custom elements in React 18 and 19. Test object properties, event casing, late registration, and server rendering before removing a wrapper.

Next.js vs. Remix compared properly, across routing, data loading, mutations, caching, and the architectural trade‑offs teams actually feel in production.

Compare horizontal and vertical scanning for Longest Common Prefix in TypeScript, including complexity, edge cases, and when each method is clearer.

Solve Merge Intervals in TypeScript by sorting ranges, merging overlaps, handling touching intervals, preserving inputs, and avoiding common mistakes.

:where() FunctionThe CSS where() function groups selectors without specificity, simplifying overrides. Here, I explain its use, benefits, and why it can reduce code clarity.