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
Popular guides
Most readLatest guides
Page 27 of 397Rust 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.