© 2026 Dometrain. All rights reserved.
Learn Rust from zero by writing and running small graded programs in the browser: bindings, functions, control flow, ownership, borrowing, strings, and vectors.
Rust has a reputation for being hard to start with. This short course takes the opposite bet, you write Rust from the very first lesson. There is nothing to install and no toolchain to configure. You type code, press Check, and the grader runs it against real cases and shows you which case or rule your program did not satisfy.
The course assumes no Rust and no prior programming experience. It opens with printing text and immutable bindings, then moves through functions with typed parameters and return values, integer arithmetic that refuses to overflow silently, and decisions with if used as both a statement and an expression. Loops come next: while, for over a range, and loop with break. The second half is the part that makes Rust Rust. You watch a String move from one name to another and learn why Rust rejects the old name, fix it with clone, and then avoid the copy with borrowing through & and &mut. The final chapter builds and mutates vectors, indexing them safely and passing them to functions by reference.
Every one of the twenty exercises is graded against a real execution of your code, with hints available when you are stuck and a reference solution to read afterwards. It suits anyone who wants a first taste of Rust that is short enough to finish in an afternoon, and it leaves you ready for a full Rust course that adds structs, enums, pattern matching, and traits.