Programming syntax, explained one concept at a time.
Focused guides on variables, data types, control flow, functions, classes, and the standard library — short references you can read and copy while you work.
- Syntax guides
- 3,965+
- Topics
- 14
- Browser tools
- 21
from dataclasses import dataclass
@dataclass
class Guide:
topic: str
minutes: int
def total_minutes(guides: list[Guide]) -> int:
return sum(guide.minutes for guide in guides)Dataclasses and type hints
Open guideBrowse by topic
Every category in the library, with the number of published guides.
Latest syntax guides
The four most recent guides, straight from the library.
Rust: failed to run custom build command for openssl-sys
The build script could not find OpenSSL headers. Read its output, install the development package, point pkg-config at the prefix, or vendor the library.
Go: cannot find main module and where go.mod is looked up
The go command searched upward and found no module. Create it at the right level, join modules with go.work, and check GOMOD before guessing.
Django: InconsistentMigrationHistory, applied before its dependency
The migration table records an order the graph forbids. Compare the rows with the files, then fake the gap, remove one row, or reset the database.
System.Text.Json: The JSON value could not be converted to a type
The serializer refuses to coerce. Read the exception path, then add a converter for dates, number handling for quoted values, or an enum converter.
Browser developer tools
21 utilities that run entirely in your browser, with nothing sent to a server.