New
Node 26.14: mockResolvedValue and Friends in node:test →
w3/
w3-tutorials
AI Engineering
New Releases
Techniques
Tools
News
Search tutorials
/tutorials
All tutorials
Everything we've published, newest first.
All tutorials · w3-tutorials.com
All
Beginner
Intermediate
Advanced
Node 26.14: mockResolvedValue and Friends in node:test
Node 26.14 adds mockReturnValue, mockResolvedValue, mockRejectedValue and mockThrownValue to node:test. Use them in a TypeScript suite and fix the missing types.
Intermediate · 5 min read · Dec 4, 2026
node 26.14.0
Serve Agent Skills from an MCP Server with loadSkills
MCP TypeScript SDK 2.4 turns a folder of SKILL.md files into an MCP server in one call. Build one, load skills from a client, and see how digests catch edited files.
Intermediate · 9 min read · Dec 3, 2026
node 22.22
PHP 8.6: Partial Application, Duration and clamp() in Practice
PHP 8.6 lets you leave arguments as ? and get a closure back. Build a typed retry helper with Time\Duration and clamp(), catch stream errors as exceptions, and find the deprecations that will show up after you upgrade.
Intermediate · 8 min read · Dec 2, 2026
php 8.6.0
Redis 8.12: Give Each Set Member Its Own TTL
Redis 8.12 lets every member of a set expire on its own. Build a who's-online list and a webhook dedupe window with SADDEX, with no cleanup job.
Intermediate · 8 min read · Dec 1, 2026
redis 8.12.0
Vite 8.4: Lock Down the Dev Server With an Allow-List
Vite 8.4 can serve only the files your app references. Turn it on in two lines, see what breaks, and pick up CSS subpath imports and duplicate-server detection on the way.
Intermediate · 8 min read · Nov 27, 2026
vite 8.4.0
Style video players with CSS :playing, :paused and :buffering
Chrome 158 ships CSS pseudo-classes for media state. Build a video player whose play button, spinner and muted badge need no JavaScript to stay in sync.
Intermediate · 8 min read · Nov 26, 2026
chrome 158.0.8127.18
Write custom lint rules in TypeScript with Biome 2.6
Biome 2.6 runs lint rules written in TypeScript. Build a rule that keeps process.env in one file and another that rewrites console.log with a code fix.
Intermediate · 8 min read · Nov 25, 2026
biome 2.6.9
Classify support tickets locally with Ollama decision models
Route tickets, flag refunds and score urgency with a local model that returns real probabilities, so unclear cases go to a human instead of getting a guessed label.
Intermediate · 7 min read · Nov 24, 2026
ollama 0.40.17
PostgreSQL 19: 7 new SQL features you can use today
Get-or-create with ON CONFLICT DO SELECT, JSON from COPY, IGNORE NULLS, faster NOT IN and REPACK, each with SQL and real output from PostgreSQL 19.0.
Intermediate · 10 min read · Nov 23, 2026
postgres 19.0
CSS random(): random sizes, colors and delays without JS
Chrome 156 and Safari 26.2 support random(), and Firefox 161 adds it on November 24. Scatter, size and stagger elements in pure CSS, share one value between properties, and keep screenshot tests stable.
Intermediate · 8 min read · Nov 20, 2026
chrome 157.0
Playwright 1.65: fix the tests that break on upgrade
Playwright 1.65 breaks page objects, cookie checks and empty shards that passed on 1.64. Upgrade a real suite, read each error and apply the fix, then try the new failures reporter and Bun.
Intermediate · 10 min read · Nov 19, 2026
@playwright/test 1.65.1
Next.js 16.4: fail the build when a page turns dynamic
Next.js 16.4 adds ensureStatic, which makes next build fail when a route would render on every request. Add it to a blog, see each real error, and keep per-visitor bits in the browser.
Intermediate · 9 min read · Nov 18, 2026
next 16.4.6
Cut Python startup time with lazy imports in 3.15
Python 3.15 adds a lazy keyword that loads a module only when your code first uses it. Measure what startup pays for, halve a CLI's start time, and avoid the side-effect trap.
Intermediate · 9 min read · Nov 17, 2026
python 3.15.2
Vitest 5 migration: fix the tests that break on upgrade
Vitest 5 turns old warnings into errors and changes defaults like clearMocks. See the exact failures from a real upgrade, how to fix each one, and two CI changes that break without a single failing test.
Intermediate · 9 min read · Nov 16, 2026
vitest 5.1.0
Rust 1.100: the never type, DropGuard and Cargo cooldowns
What changed in Rust 1.100, with runnable examples: the never type fallback change that can break your build, DropGuard, custom allocators, and Cargo dependency cooldowns.
Intermediate · 7 min read · Nov 15, 2026
rust 1.100.0
Build a Stateless MCP Server with the 2026-07-28 Spec
The 2026-07-28 MCP spec drops the handshake and session IDs. Build a server that any instance can answer, and run it behind a plain round-robin load balancer.
Intermediate · 8 min read · Nov 12, 2026
node 22.22
Node.js 26 LTS: Migrate from Date to Temporal
Node.js 26 is LTS and ships Temporal switched on. Replace Date for parsing, time zones, DST, durations and Postgres timestamps, and avoid the traps that break old code.
Intermediate · 8 min read · Nov 12, 2026
node 26.13.1
Validate LLM output with Zod and retry when it's wrong
Treat model replies like user input: check them against a schema and send the exact errors back for a corrected answer.
Intermediate · 3 min read · Nov 8, 2026
node 22.22
Keyset pagination in Postgres: stop using OFFSET on big tables
Why OFFSET gets slower on every page, and how a two-column cursor keeps page 7,500 as fast as page 1.
Intermediate · 2 min read · Nov 8, 2026
postgres 18.6
Postgres 18: three features you can use today
Virtual generated columns, uuidv7() primary keys and before-and-after values in RETURNING, each with SQL you can run.
Intermediate · 3 min read · Nov 8, 2026
postgres 18.6