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 shared behavior blueprint plugged into several struct shapes through generic bound sockets
Rust

Rust Traits: Defining Interfaces, Default Methods, and Trait Bounds

Static dispatch versus dyn, associated types versus generic parameters, and the object-safety and orphan rules that decide what an API can express.

RustTraitsOOP
3D illustration of a two-track railway where Ok and Some cars continue while Err and None divert at a question-mark switch
Rust

Rust Error Handling: Result, Option, unwrap, and the ? Operator

Errors are values. How ? converts between error types, when unwrap is honest, and the difference between absence and failure that Option erases.

RustError HandlingSyntax
3D illustration of an exhaustive match tree splitting enum variants into guarded branching arms
Rust

Rust Pattern Matching: match Expressions, Guards, and if let Syntax

match is exhaustive and checked; guards are not. Destructuring, bindings with @, slice patterns, and the wildcard arm that quietly breaks when an enum grows.

RustControl FlowPattern Matching
3D illustration of overlapping reference timeline bars bound by glowing scope markers
Rust

Rust Lifetimes Explained: Annotations, Struct References, and Elision

Lifetimes describe relationships, not durations. The three elision rules, what 'static really means, and the two errors no annotation can fix.

RustLifetimesSyntax
3D illustration of a stack frame passing an owned heap pointer while borrow tags attach to the same data block
Rust

Rust Ownership and Borrowing: Move Semantics and Borrow Checker Rules

One owner, either many readers or one writer. How moves differ from Copy, what NLL changed, and the four error codes that cover most borrow failures.

RustOwnershipMemory Safety
3D illustration of a raw JSON container state tree parsed by a template funnel into one formatted terminal line
Docker

Docker Inspect: Go Templates, Format Flags, and JSON Filtering

The fields worth knowing, the array-versus-object trap, and why <no value> silently passes your monitoring check instead of failing it.

DockerCLIDebugging
3D illustration of a user-namespace sandbox wrapping the Docker daemon inside an unprivileged host account
Docker

Docker Rootless Mode: Setup, Security Model, and Limitations

Running dockerd inside a user namespace removes the root daemon. What that buys, what it forbids, and the four prerequisites setup fails on.

DockerSecurityContainers
3D illustration of a build context folder filtered by a sieve before splitting into file copy and archive extract chutes
Docker

Docker COPY vs ADD: Build Context, .dockerignore, and Cache Busting

ADD adds tar extraction and URLs nobody wants; COPY is the predictable choice. How the build context is packed, and how copy order decides rebuild time.

DockerDockerfileBest Practices
3D illustration of layered docker-compose YAML plates switching between dev, test and prod profile rails
Docker

Docker Compose Profiles: Multi-Environment Configs and Overrides

Profiles select which services exist; override files change how they run. How the two fit together, and why ports concatenate instead of replacing.

DockerDocker ComposeDevOps
3D illustration of a container rebooting on an exponential backoff staircase with a circuit breaker switch
Docker

Docker Restart Policies: no, on-failure, always, and unless-stopped

What each policy really restarts, why on-failure ignores a clean exit, how backoff hides crash loops, and why health checks never trigger a restart.

DockerLifecycleProduction