Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

3D illustration of a module cube verified against a checksum seal beside a proxy pipe
Go

Go Module Errors: Checksum Mismatch, 404s, and Proxy Failures

A checksum mismatch is not a cache bug. Separate the proxy, the sum database, and go.sum, then fix the layer the message names instead of editing the hash.

GoModulesCIDependencies
3D illustration of a heap of object cubes overflowing a container with a snapshot camera beside it
Node.js

Node.js JavaScript heap out of memory: Snapshots and Real Leaks

Distinguish needs more from leaks before raising the flag: external memory and heap tell different stories, and a heap ceiling at three quarters of the container limit keeps V8 able to report.

Node.jsMemoryPerformanceDebugging
3D illustration of CSV row slabs folding into JSON brace objects with a BOM tag pulled away
Python

CSV to JSON in Python: Encoding, Types, and Serialization Pitfalls

CSV has no types, so every conversion is a guess. Four settings decide whether the output is faithful: the encoding, the newline mode, the dialect, and how NaN is serialized.

PythonCSVJSONData Processing
3D illustration of a request card rejected at a validation gate with an error list panel
Python

FastAPI 422: Custom Validation Errors and Response Models

Three exceptions share the 422 path and only one is handled by default. A single handler that strips input and flattens loc gives clients a contract that survives a Pydantic version change.

PythonFastAPIPydanticAPI Design
3D illustration of dependency cubes resolved through a solver funnel into a lockfile slab
Python

uv Resolution Errors: Reading No solution found and Lock Drift

The last Because clause is the contradiction and everything above it is context. Then decide: relax a pin, narrow requires-python, or change index strategy.

PythonuvDependenciesPackaging
3D illustration of client cubes queueing at a database with a limited slot rack
SQL

Postgres too many clients: Pool Sizing and Connection Exhaustion

Each process caches its own pool and nothing coordinates them. Divide the ceiling by replicas, put a transaction-mode pooler in front, and stop idle-in-transaction sessions from holding slots.

SQLPostgreSQLPerformancePooling
3D illustration of policy rings looping back into a table cube with a break gate in the loop
SQL

Postgres RLS 42P17: infinite recursion detected in policy

A policy on members that reads members re-enters itself. One security definer function with a pinned search_path ends the recursion and leaves the rest of the policy intact.

SQLPostgreSQLRLSSupabase
3D illustration of a repository cube behind an ownership gate with two user key cards
Git

Git detected dubious ownership: Docker, Compose, and CI Fixes

A bind mount keeps the host UID and the container runs as root, so Git stops before reading a single object. Trust the path Git resolves, not the one you mounted.

GitDockerCISecurity
3D illustration of a type checker gate turning loosely typed blocks into narrow typed blocks
TypeScript

TypeScript strict Mode: TS2531, TS7006, and TS18047 Migrations

strict is nine flags at once. Count errors per code, fix them in the order that keeps the build green, and narrow instead of asserting.

TypeScriptMigrationType Safetytsconfig
3D illustration of a build pipeline with a failing layer brick and a cache vault beside it
Docker

Docker BuildKit failed to solve: Exit Codes, Build Context, and Network

BuildKit puts every failure under one prefix. The exit code after did not complete successfully is the whole diagnosis: 100 is apt, 127 is a missing binary, and cache key is a file outside the context.

DockerBuildKitCIDebugging