
How I Choose Dynamic‑Programming State
Choose dynamic‑programming state with Word Break, Unique Paths, common subsequences, and Coin Change: define the question before choosing a table or loop.
Articles
My guides are the practical part of this archive: working explanations for a specific web development problem, written to show the decision as well as the answer. The subject varies, but the aim is consistent: enough context to use the technique sensibly rather than copy it blindly.

Choose dynamic‑programming state with Word Break, Unique Paths, common subsequences, and Coin Change: define the question before choosing a table or loop.

Solve Decode Ways in TypeScript with one‑digit and two‑digit choices, careful zero handling, exact intermediate counts, and a two‑counter solution.

Measure GEO with honest evidence from Search Console, analytics, query sets, AI‑assisted journeys, attribution patterns, and outcomes instead of fake scores.

Solve Cheapest Flights Within K Stops in TypeScript, using separate cost arrays to enforce the stop limit and avoid misleading cheapest‑arrival shortcuts.

Approach production observability in Next.js with contextual logs, traces, release markers, client errors, cache signals, build visibility, and business data.

Lessons from running Next.js Pages Router at scale in 2026, including governance, performance discipline, and why older patterns sometimes still make sense.

Solve Network Delay Time in TypeScript with Dijkstra's algorithm, a small min‑heap, stale‑entry checks, and a clear explanation of when distances become final.

Stale closures in React explained through renders, handlers, effects, timers, refs, dependency arrays, why callbacks read old state, and how to fix them.

Find the longest increasing subsequence in TypeScript, from quadratic dynamic programming to binary search, with duplicate handling and a clear tails invariant.

Debugging hydration mismatches in React and Next.js, including common causes, repeatable fixes, and how to stop server and client renders drifting apart.

How to de‑risk a CMS migration before the real move starts, by testing workflows, content assumptions, integrations, ownership, and technical contracts early.

A practical Contentful to Sanity migration checklist for Next.js sites, covering schemas, references, preview, redirects, metadata, and SEO checks.

Build an LRU cache in TypeScript with a hash map and doubly linked list, then compare it with a simpler JavaScript Map implementation and O(1) operations.

How to vet a senior Next.js developer for replatforming, recovery, SEO, performance, CMS, Vercel, and production debugging work.

Diagnose Sass colours that survive compilation but break in Next.js production CSS when minification creates invalid mixed‑unit legacy rgb() values.

Mastering Server Components in Next.js, including client boundaries, data fetching, caching, streaming, and the mistakes that make App Router code messy.

Build a circular queue in TypeScript using a head index and size. Trace wraparound, distinguish full from empty, and test sequences against an array.

Right to Represent agreements for UK contractors, covering recruiter pressure, duplicate submissions, hybrid working changes, and safer wording before signing.