Blog — page 4
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
170 articles
Post-Quantum Migration for Blockchain Teams
Most post-quantum migration guides open by quoting NIST's 2030 deprecation and 2035 disallowance dates as settled policy. That document has been an initial public draft since 12 November 2024 and has never been finalised. The thing that actually binds US federal systems and their contractors is Executive Order 14412 of 22 June 2026, with different dates, a different scope, and a FAR rule attached. This guide starts by getting the citation right, then walks the migration in the order the work actually happens: the three FIPS that are final and the two workstreams that are not, why hybrid rather than pure post-quantum is the sane default and what Signal and Cloudflare did about it, where TLS has already moved and the origin-server gap that nobody is closing, the cryptographic inventory step every team skips and the bill-of-materials format that is standardising, and the size consequences that decide whether a scheme fits your protocol at all. Then the part that has no equivalent outside this industry: you cannot hard-fork a signature scheme without moving every single user, which is why BIP-360, BIP-361 and EIP-8141 exist and why none of them contains a post-quantum algorithm yet.
Context Engineering: Why Compaction Is the Wrong First Lever
Context editing is a server-side Claude API feature. So is compaction, since `compact_20260112` shipped in January 2026 — but compaction is still the wrong lever to reach for first. Anthropic's own long-running-agent team chose full context resets over summarise-and-continue, and named the failure compaction induces: context anxiety, where a model wraps up prematurely near its perceived limit. A June 2026 paper measured the alternative on a 50-task benchmark: full history scored 71.0% completion on 1,480,996 tokens, pruning to the last five tool interactions scored 79.0% on 535,274 tokens, and pruning plus summarisation scored 91.6% on 553,374 tokens — 20.6 points better on 63% fewer tokens. This guide gives the order the levers go in, the documented parameters for clear_tool_uses_20250919, and the cache interaction nobody writes about: clearing tool results invalidates your cached prefix, so a careless edit costs more than it saves.
Does AI Make Developers Faster? What the Measurements Say
The most-cited number in this debate is METR's July 2025 finding that experienced developers were 19% slower with AI tools. It has a February 2026 sequel that almost nobody read, and the sequel's headline result is indistinguishable from zero: 57 developers, 143 repositories, over 800 tasks, and a newly recruited cohort measured at 4% slower with a confidence interval running from 15% slower to 9% faster. METR is also changing the experiment design, because developers increasingly declined to enrol or to submit tasks they did not want to do without AI, the pay rate fell from $150/hr to $50/hr, and agentic tools broke self-reported time-on-task — effects METR says make its measured numbers a lower bound. Under three months later METR's own survey of 349 technical workers found a median self-reported 3x speed gain, with METR warning in the same post that survey results are not necessarily grounded in reality. This article carries both numbers, the design change between them, and the two credible 2026 employment datasets that describe a composition change rather than a headcount collapse, each with its author's causation caveat intact.
MCP Went Stateless: Migrating Your Server
The Model Context Protocol revision dated 28 July 2026 removes the initialize handshake and the Mcp-Session-Id header, and deprecates the legacy HTTP+SSE transport with a year-long offramp. Most tutorials still teach all three. This is the migration guide instead: what each removed piece is replaced by, what the 12-month deprecation windows mean for a server already carrying production traffic, and the order to do the work in so you do not break clients that have not upgraded. Covers the self-contained request shape and optional server/discover capability discovery, Multi Round-Trip Requests replacing server-initiated calls over open streams, the Mcp-Method and Mcp-Name headers that let a gateway route and meter without parsing your JSON body, cacheable list and read results carrying ttlMs and cacheScope, and the auth hardening that will break integrations quietly — RFC 9207 issuer validation, credential binding, and Dynamic Client Registration deprecated in favour of Client ID Metadata Documents. Ends on the client half of the problem, which is the expensive half: a five-server MCP setup burns roughly 55,000 tokens of tool definitions before the agent does any work, and tool-selection accuracy degrades once you pass 30 to 50 tools. Written by an engineer who ships MCP servers, with every spec claim linked to the primary source.
Web3 vs Web2: An Honest Comparison from Someone Who Builds Both
An honest, non-maximalist comparison of Web3 and Web2 from a developer who builds both professionally — DeFi protocols and Next.js SaaS platforms, NFT smart contracts and e-commerce stores. Where blockchain genuinely adds value, where traditional stacks are still better, real cost breakdowns, developer experience differences, and the hybrid approach that actually works in production. No tribal loyalty. Just engineering reality.
The AI Landscape in 2026: What Developers Need to Know
A developer's field guide to the AI landscape in 2026 — from Claude Opus 4.6 and GPT-4 Turbo to code AI tools, real agent workflows, MCP, RAG maturity, and multimodal generation. Based on daily hands-on use building production AI products, 90 minutes of morning research, and strong opinions on what's real versus what's hype. If you're building with AI in 2026, this is the map.
GemStore.lk: How I Built a Gemstone Export Business from Sri Lanka
The story behind GemStore.lk — how Uvin Vindula built a direct-to-customer Ceylon gemstone export business sourcing sapphires, rubies, and precious stones from mines in Eheliyagoda, Sri Lanka and shipping certified gems to buyers in the UK, USA, and Europe. No middlemen. No inflated prices. Just real stones, proper certification, and a platform built by someone who understands both the product and the technology.
Dark Mode Implementation in Next.js with Tailwind CSS
iamuvin.com is dark-only by design — but most client projects need a proper dark/light toggle. This guide covers every detail of implementing dark mode in Next.js with Tailwind CSS v4: class-based vs media query strategies, CSS variables for seamless theme colors, solving the dreaded flash-of-wrong-theme on page load, building a Theme Provider with React Context, persisting user preferences, detecting system settings, and knowing when dark-only is the right choice. Every pattern comes from production code I've shipped for clients.
How to Learn to Code in 2026: A Practical Roadmap
A practical, no-nonsense roadmap for learning to code in 2026. Uvin Vindula breaks down where to start, what languages to learn first, which frameworks matter, how AI tools fit into the learning process, and a concrete 6-month plan that takes you from zero to employable. Based on teaching 10,000+ learners through uvin.lk and eight years of professional development experience across Web3, AI, and full-stack engineering.
Next.js 16 Complete Guide: Everything That Changed
A comprehensive guide to Next.js 16 from someone who migrated four production apps. Covers App Router improvements, React 19 integration, Server Components, streaming patterns, performance gains, and a practical migration guide from Next.js 15.
Tech Trends 2026: What Actually Matters from a Developer's Perspective
A developer's honest take on the tech trends that actually matter in 2026. From AI agents that ship real features to L2s winning the scaling debate, Next.js 16 changing frontend architecture, and MCP redefining tool use — these are the trends I'm building with daily, not just reading about. Based on 90 minutes of daily trend research, building production systems, and attending Token 2049.
Environment Variables in Next.js: The Production Guide
A complete guide to managing environment variables in Next.js across local development, preview deploys, and production. Covers how Next.js resolves .env files, the NEXT_PUBLIC_ prefix rules that trip up every developer at least once, type-safe validation with Zod, build-time vs runtime variables, secrets management on Vercel, common mistakes that accidentally leak API keys to the browser, and the exact .env setup I use on every project. If you have ever shipped a deploy that silently broke because an env var was missing, this guide will save you from that particular brand of pain.