Strategy Design Pattern: Courier Rates Without a Switch

Strategy design pattern in TypeScript: replace a courier shipping switch with swappable rate classes. Runnable code, real output, PHP version and drills.

Strategy design pattern in TypeScript: replace a courier shipping switch with swappable rate classes. Runnable code, real output, PHP version and drills.

Drupal installer access bypass CVE-2026-136716 is exploited. Fixed versions, why last week's patch fell short, an Nginx block we tested and what to check.

LLM fallback circuit breaker for Node.js: disable hidden SDK retries, classify 429 and 529 errors, and cut calls to a failing provider from 3,554 to 7.

LLM token rate limiting for shared AI gateways: reserve tokens up front, reconcile with real usage, and avoid 429s. Tested Node.js and Redis Lua code.

Zod vs Valibot tested on one schema: bundle size, Node.js parse speed, JSON Schema output and an import gotcha, with a verdict on which to use and where.

Optimizely supply chain attack explained: why allowlisting the CDN failed, how strict-dynamic and unsafe-eval let malware run, and the CSP that held.

Fastify middleware bypass explained: affected @fastify/express and middie versions, a lockfile check we ran, the preHandler fix and the interview concepts.

Parking lot low level design in Java: best-fit spots, tickets, a swappable pricing strategy, real output, a Python version and interview follow-ups.

LLM context length exceeded errors in Node.js: detect OpenAI and Claude overflows, count tokens correctly, and trim history without breaking tool calls.

RLS policy privilege escalation let a free user own Dosu's internal org. See the broken invite policy, a tested fix, and the CI and integration lessons.