Skip to main content

Architecture

The Elm Architecture: a loop that fits in your head

·14 mins
Model, Update, View. Three pieces, one loop, zero surprises. We explain The Elm Architecture from scratch with side-by-side examples in Rust and Scala, trace where the pattern came from, why it keeps showing up in TUIs and functional codebases, and when it stops being the right tool.

Ownership in Rust 2. Six ways to share state and how to pick the right one

·9 mins
Move, borrow, clone, Rc, Arc, Cow. Rust gives you six lightsaber forms for ownership. Each one counters a specific threat. Using the wrong form against the wrong opponent is not just inelegant, it is fatal. We map each strategy to the situations where it excels and where it fails catastrophically.

Todo CLI in Rust 1. Hexagonal architecture in a small project

·6 mins
We kick off the series by building a To-Do CLI in Rust from CodeCrafters’ Project #1, but without turning it into a giant script. We cover architecture decisions, layer boundaries, and why a small project can also teach you serious design.