Type something to search...

Blog

Measuring Test Coverage in Python with coverage.py

Measuring Test Coverage in Python with coverage.py

A green test suite tells you that the tests you wrote pass. It doesn't tell you what you didn't write tests for. That untested error branch, the co

Continue Reading
Passing Data from Server Components to Client Components Without Leaking Secrets

Passing Data from Server Components to Client Components Without Leaking Secrets

Server Components make it easy to forget where the server ends. You query the database right inside a component, the code never ships to the browser,

Continue Reading
The "use client" Directive Explained: Drawing the Server–Client Boundary in Next.js

The "use client" Directive Explained: Drawing the Server–Client Boundary in Next.js

"use client" is one line at the top of a file, and it's responsible for a surprising amount of confusion. Developers add it to silence an error and

Continue Reading
React Server Components in Next.js: A Practical Mental Model

React Server Components in Next.js: A Practical Mental Model

React Server Components (RSC) are the default in the Next.js App Router, which means you're using them whether you've thought about them or not. Ever

Continue Reading
The Next.js Link Component: Prefetching, Scroll Behavior, and Best Practices

The Next.js Link Component: Prefetching, Scroll Behavior, and Best Practices

Link is probably the component you use most in a Next.js app, and the one you think about least. You import it from next/link, give it an href,

Continue Reading
Mocking in Python with unittest.mock

Mocking in Python with unittest.mock

Unit tests should be fast, deterministic, and isolated. Real code, unfortunately, talks to things that are none of those: HTTP APIs that are slow or

Continue Reading