All guides
Every guide, newest first. Browse by topic instead, or read the daily tips and puzzles.
-
Python Modules and Packages — import, Aliases, and __name__ Python
Python modules and packages from the ground up: import loads a module once and binds its name, from-import and aliases shape the names you use, a module you write is an ordinary file, __name__ tells a file whether it was run or imported, the __main__ guard keeps run-only code out of imports, a package is a folder of modules, and the standard library ships as modules such as json.
-
Python Loops and Conditionals — for, while, if, range, and enumerate Python
Python loops and conditionals from the ground up: if, elif, and else pick a branch, a for loop walks a sequence or a range, a while loop repeats while a test stays true, break leaves a loop early, continue skips one pass, an else clause on a loop runs when no break happened, and enumerate and zip walk two views of a list at once.
-
Python List Comprehensions — Map, Filter, and Nest Python
Python list comprehensions from the ground up: a comprehension builds a list from a loop and an expression in one line, a trailing if filters the items that reach the list, an if and else in the expression picks a value for every item, two for clauses walk pairs and flatten a matrix, the same shape builds dicts and sets, enumerate and zip feed a comprehension paired values, a comprehension variable stays inside the comprehension, and dropping the brackets makes a generator that sum can read once.
-
Python JSON — dumps, loads, and Files Python
Python JSON from the ground up: dumps turns a dict into a JSON string and loads parses a string back into Python values, indent and sort_keys and separators control how the text is laid out, a tuple comes back as a list and dict keys come back as strings, dump and load work directly on files, nested dicts and lists read one level at a time, bad text raises JSONDecodeError with a position, and a set raises TypeError until you convert it to a list.
-
Python Generators and Iterators — yield, next, and Lazy Sequences Python
Python generators and iterators from the ground up: a function with yield produces values one at a time, next and StopIteration drive a generator by hand, a generator expression stays lazy where a list comprehension builds at once, an endless generator is safe under a break, the iterator protocol behind for loops, and yield from for delegating to a second generator.
-
Python Functions — def, Default Arguments, and Functions as Values Python
Python functions from the ground up: def names a block you can call again, return hands a value back, and a default argument fills in when the caller leaves one out. The guide covers keyword arguments, *args and **kwargs, functions passed as values with lambda, and the mutable default trap where one shared list grows across calls.
-
Python Files — open, read, write, and with Python
Python file handling from the ground up: open with a mode, write and read text with an explicit encoding, the difference between w, a, and x, reading by line or all at once, why with closes the file even when code fails, pathlib for short reads and writes, and binary mode for bytes that are not text.
-
Python Exceptions — try, except, else, finally, and raise Python
Python exceptions from the ground up: try marks code that can fail, except catches a specific error type and reads its message, else runs only when nothing failed, finally runs either way, raise starts an error on purpose, a custom exception class names a problem in your own terms, and chaining keeps the original cause.
-
Python Decorators — @ Syntax, Wrapping, and functools.wraps Python
Python decorators from the ground up: a decorator is a function that takes a function and returns a replacement, the @ line applies it at definition time, a wrapper with args and kwargs passes calls through and returns the result, stacked decorators apply bottom first, a decorator factory takes its own arguments, functools.wraps keeps the original name and docstring, and a class with __call__ holds decorator state.
-
Python Datetime — date, time, timedelta, and Formatting Python
Python datetime from the ground up: date and datetime hold a calendar day and a clock time as separate fields you can read one by one, timedelta adds and subtracts days and seconds and reports the gap between two moments, strftime formats a value as text and strptime parses text back, a datetime is naive until it carries a tzinfo and astimezone converts an aware value between fixed offsets, replace returns a changed copy, combine joins a date and a time, and fromisoformat and timestamp round-trip a value through text and through seconds.
-
Python Context Managers — with, __enter__, __exit__, and contextlib Python
Python context managers from the ground up: the with statement runs setup before a block and cleanup after it even when the block fails, a class becomes a manager with __enter__ and __exit__, __exit__ receives any exception and decides whether it spreads, returning true holds the exception in, contextlib.contextmanager builds a manager from one generator function, several managers in one with line exit in reverse order, and ExitStack handles a number of managers known only at run time.
-
Python Collections — Counter, defaultdict, deque, and namedtuple Python
Python collections from the ground up: Counter counts items and reports a missing key as zero, Counter arithmetic keeps only positive counts while update adds counts in place, defaultdict builds a missing value with a factory so grouping and counting need no key check first, deque adds and removes at both ends and a maxlen deque drops the far end when it fills, and namedtuple gives a tuple named fields, defaults, and a replace method that returns a changed copy.
-
Python Classes and Objects — __init__, Methods, Inheritance, and Dataclasses Python
Python classes and objects from the ground up: a class bundles data and the methods that work on it, __init__ sets up each new object, self names the current object, class attributes are shared while instance attributes belong to one object, inheritance reuses a parent class, special methods control printing and equality, and dataclasses write the routine parts for you.
-
Python argparse — Arguments, Options, and Subcommands Python
Python argparse from the ground up: a positional argument arrives as a string, an option takes a default and a short name, the type setting converts a string to an int or a float and a bad value exits with code 2, choices limits an option to a fixed set and required makes an option mandatory, nargs collects a run of values into a list, store_true and count build flags that take no value, and subparsers give one program several commands, each with its own arguments.
-
Linux Users and Permissions — id, chmod, chown, and sudo Sysadmin
Linux permissions from the ground up: id shows who you are and which groups you belong to, umask sets the starting mode for new files, chmod changes the nine permission bits in numeric or symbolic form, a directory needs execute permission before any file inside it can be opened, and chown changes ownership only with root rights, which is where sudo comes in.
-
Bash Scripting Basics — Variables, Loops, Conditionals, and Functions Sysadmin
Bash scripting from the ground up: a variable holds a value with no spaces around the equals sign, a for loop walks a list, a while loop runs while a test passes, an if branches on a quoted test, and a function takes positional parameters. The guide covers the two beginner traps with exact errors: spaces around the equals sign, and an unquoted variable in a test.
-
Searching, Reading, and Rewriting Text: Twelve Measured Guides Sysadmin
Twelve guides about working with text on the command line: finding lines, reading what is really in a file, and rewriting it, each with a one-line summary and a link to the full guide.
-
Systems and Services: Eight Guides on Limits, Restarts, and Reloads Sysadmin
Eight guides about the systems that run your code: the limits that throttle or kill a process, the restarts that bring a service back, the reloads that swap config without dropping traffic, and the build tools that tax every rebuild.
-
Rust Ownership and Borrowing — Moves, Borrows, and Clones Rust
The one idea Rust beginners must get first: each value has one owner, assignment moves a String and copies an i32, a borrow lets a function read without taking ownership, and clone makes a second owner. One working program and the exact E0382 error.
-
Python Lists, Dicts, and Sets — The Three Collections You Use Every Day Python
The three collections every Python program uses: a list that keeps order and grows with append, a dict that finds a value by its key and raises KeyError for a missing one, and a set that drops duplicates and answers membership in one test. Programs print max 95 sorted [79, 88, 92, 95] and unique tags 3 has go: True.
-
Modern C++ Guides: C++20 and C++23, Built and Run Sysadmin
Nineteen Modern C++ guides — fifteen course guides on C++20 and C++23, plus four measured head-to-heads — each with a one-line summary and a link to the full guide.
-
Measured Comparisons: 9 Guides From November 8, 2026 Sysadmin
Nine measured guides published November 8, 2026 — one C++ and eight sysadmin and command-line — each with its headline result and a link to the full table. A companion to the November 9–10 index.
-
Measured Comparisons: 30 Head-to-Head Guides, November 9–10, 2026 Sysadmin
Thirty measured head-to-head guides published November 9–10, 2026 — four C++ and twenty-six sysadmin and command-line — each with its headline result and a link to the full table.
-
11 Guides From November 5–8, 2026 Sysadmin
Eleven guides published November 5–8, 2026 — Go, Rust, Python, TypeScript, Docker, and Git — each with its own description and a link to the full guide. A companion to the measured-comparisons indexes and the Modern C++ hub.
-
Go Structs and Interfaces — Grouping Data and the Method Set That Defines Behavior Go
Go structs and interfaces: a Point struct prints (3,4) through its String method, a Rect satisfies the Shaper interface with no implements declaration and prints area=30, and an interface variable holding a Rect prints iface area=6. The same guide shows a pointer receiver changing a Rect from 2, 3 to 20, 30 while a value receiver leaves it alone, a struct copy changing only the copy, and an interface holding a nil pointer reporting isNil=false.
-
Go Slices and Maps — Append, Length, Capacity, and Lookup Go
The two containers every Go program uses: a slice that starts as 1, 2, 3, grows to len 5 cap 6 with append, and a map that gains a key, loses one, and answers a missing key with the comma-ok idiom. One program prints len 5 cap 6 s [1 2 3 4 5] and bo present: false value: 0.
-
Finding a Leaked Goroutine with Go 1.27's goroutineleak Profile Go
A goroutine blocked on a channel receive forever is a leak, and Go 1.27 made the goroutineleak profile generally available to find it. This walkthrough writes the leak, captures the profile with runtime/pprof, and reads it with go tool pprof: 1 leaked goroutine, parked in runtime.gopark via chanrecv, created by main.main.func1. The fixed program closes the channel and its profile shows 0 leaked goroutines..
-
Git Internals: Three Guides That Build the Storage Model by Hand Sysadmin
Three guides that build Git's storage model by hand: loose objects, trees, commits, and packfiles with hand-encoded deltas, in Python and C++, every hash checked against real Git.
-
Copying, Moving, and Splitting Files: Ten Measured Guides Sysadmin
Ten guides about moving data between files: copying, moving, splitting, merging, and comparing, each with a one-line summary and a link to the full guide.
-
C++ Variables and Data Types: Declaration, Initialization, and Sizes C++
Declare a C++ variable, initialize it three ways, and read what sizeof reports: int 4 bytes, double 8, bool 1. Includes the brace-init narrowing error, the uninitialized-variable warning, integer division, and bool printing.