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 form panel sending data through a function pipe into a server cube with validation checkmarks
Next.js

Next.js Server Actions: Forms, Validation, and useActionState

Actions are POST endpoints the app can call. Schema validation on the server, serializable state for field errors, progressive enhancement, and why redirect() must not sit in a try block.

Next.jsServer ActionsFormsReact 19
3D illustration of stacked cache slabs invalidated by tag chips beside a revalidate clock dial
Next.js

Next.js Data Fetching: Caching, revalidate, and Tag-Based Invalidation

Next.js 15 stopped caching fetch by default. How request memoization, the data cache, and the route cache interact, and when to invalidate by tag instead of by clock.

Next.jsCachingData FetchingApp Router
3D illustration of URL path segments with a bracket slot receiving parameter tiles and prerendered pages
Next.js

Next.js Dynamic Routes: Catch-All Segments and generateStaticParams

params is a Promise in Next.js 15+, catch-all arrays index differently at the root, and dynamicParams decides whether an unknown slug is prerendered or 404s.

Next.jsApp RouterRoutingSSG
3D illustration of a server rack with async components beside a browser window with client components and a boundary line
Next.js

Server Components vs Client Components: Where the use client Boundary Actually Lands

The directive marks a module graph, not a component. Serializable props, the children pattern, context providers, and the hydration mismatches that follow.

Next.jsReactServer ComponentsClient Components
3D illustration of an App Router folder tree with page and layout file cards nesting around each other
Next.js

Next.js App Router File Conventions: page, layout, template, and the Rest

Layouts persist and templates remount; only page.tsx and route.ts make a segment routable. Route groups, private folders, and the boundaries that catch what.

Next.jsApp RouterRoutingReact
3D illustration of a terminal panel extracting paths from nested JSON blocks into a table beside a probe device
Kubernetes

kubectl Output: jsonpath, custom-columns, and the Debugging Commands Worth Knowing

jsonpath for one value in a script, custom-columns for tables people read, and kubectl debug when the container has no shell. Includes the three quoting layers that break jsonpath.

KuberneteskubectlCLIDebugging
3D illustration of a container cube wrapped in a hardened shield with lock icons for user and capabilities
Kubernetes

Kubernetes securityContext, Capabilities, and Pod Security Standards

The five fields that remove most container escapes, which of them only exist at container level, and how the restricted profile enforces the same settings at admission.

KubernetesSecurityPodSecurityCapabilities
3D illustration of namespace boxes with fill-level meters and a gate rejecting an oversized pod
Kubernetes

Kubernetes Namespaces, ResourceQuotas, and LimitRanges

A namespace is only a boundary when quota and limit range make it one. Aggregate caps, per-pod defaults, the admission errors they produce, and namespaces stuck Terminating.

KubernetesNamespaceResourceQuotaLimitRange
3D illustration of a shield gauge limiting pod evictions beside a node being drained
Kubernetes

Kubernetes PodDisruptionBudgets and Graceful Node Drains

A PDB paces voluntary disruption only. The percentage rounding that silently blocks every drain, the eviction API versus kubectl delete, and unhealthy pods that lock a node.

KubernetesPDBAvailabilityOperations
3D illustration of three zone platforms with evenly distributed pod cubes and a skew gauge between them
Kubernetes

Kubernetes Topology Spread Constraints vs Pod Affinity and Anti-Affinity

maxSkew, topologyKey, and whenUnsatisfiable decide distribution across zones and nodes. Why required anti-affinity deadlocks at scale and spread degrades instead.

KubernetesSchedulingTopologyHigh Availability