Learn
A small shelf of things worth learning, and a few pages worth reading.
Learning to program with lux
No experience assumed. These teach with lux, a small language built to be a good first one and then outgrown. The lux page lays them out in the order most people take them, but each one stands on its own, so start wherever you are.
lux
The language itself, and the place to start: install it, see the whole route from a first program to the languages after lux, and read the reference without leaving the terminal.
An Introduction to Programming
The ideas that carry into every language you go on to, such as variables, loops and functions, taught with lux from nothing at all. About an hour, and every example runs.
Building Your Own Keep
The text adventure lux writes for you, taken apart and handed back: how a single turn works, and three exercises that add a room, hide something to find, and teach the world a new rule.
Starting Something of Your Own
The jump to a blank file: sizing an idea down until it is finishable, saying what it does before writing it, working out what it has to remember, and growing it one runnable piece at a time.
When It Doesn't Work
How to find out why: reading what lux tells you and where the arrow really points, watching a program go by one line at a time, and cutting it down until the bug is the only thing left.
What lux Leaves Out
Design notes for someone who already knows three or four languages: which of lux's absences are principle, which are held back for later, and which are gaps.
Moving on from lux
For when lux starts to feel small. Read whichever you need, in any order.
When lux Feels Small
How to tell you have outgrown lux, what carries over and what does not, how to choose the language to go to next, and what the first day in it feels like.
Your Keep in Go
The keep you built in lux, converted to Go and read side by side with the original: what your enum and your Option turn into, and the checks Go leaves to you.
Your Keep in Rust
Your keep in Rust, where every guarantee lux gave you survives, and the one new question is who owns a value and what happens when somebody else wants it.
Your Keep in Swift
Your keep in Swift, the shortest move of the three: what the underscores and leading dots are, and why Option<Room> becomes Room?.
Outgrowing Lux
Reading programs you did not write. Four in a row written in lux becomes the map through three real versions of the game, in Go, Rust and Swift, each built and run on your own computer.
The Programming Shortcut
Sixteen short articles, each teaching one idea through the language that makes it clearest: ownership in Rust, message passing in Go, memory in C, events in JavaScript, and testing, debugging and version control besides. Read them in any order.
Programming in Go, Rust and Swift
These assume you already write code in something, lux or Python or JavaScript or anything of that family. The first three are the same book, chapter for chapter, one for each language lux translates into, so a second one reads quickly until the chapter in the middle where the language itself differs.
Programming in Go
Complete programs first, explanation second, and the explanation stops when the point has been made. Go is the shortest of the three: pointers, multiple returns and goroutines, a different lineage, and the one that asks you to hold the fewest ideas at once.
Programming in Rust
The same book in Rust, the strictest of the three and the one that asks the question the other two do not. Ownership is the chapter nobody arrives already knowing, and everything before it is written so you reach it without surprises.
Programming in Swift
The same book in Swift. Two things take longest to feel natural: a language with no null, so a value that might be missing says so in its type, and a type system that asks you to decide whether each value is copied or shared.
The Rust Thought Process
Not a tour of the language but a way of thinking in it: ownership, borrowing and lifetimes as design tools, making illegal states unrepresentable, errors as values, and the habits from other languages worth trading in.
Building a Rust Application
One real program, a clone of the Unix line editor ed, built in slices from an empty folder to software people install, and then read closely enough to find its bugs, fix them, and ship the fixes.
Making things for the web
HTML is easy
Why the friendliest place to start making things for the web is a plain text file and a browser.
Simple
A minimal HTML template and the Voltaire stylesheet shown in action.
Voltaire
The classless stylesheet behind these learn pages, with the source to copy or download.