RUSTY — BEGINNER
Rust,
from the first cargo new.
Nine lessons on the basics for people who already write PHP: Cargo, types, control flow, collections, structs, enums, Option and Result, modules and crates, and reading the compiler's errors.
Nine lessons.
Each lesson runs a small program and compares it with the PHP habit it replaces. The lessons build on each other; lesson 9 assumes the eight before it.
IN ORDER — 9 LESSONS
- B01 Cargo and Composer: your first Rust project 1,241 words
- B02 Variables, types and mutability 1,282 words
- B03 Functions, expressions and control flow 1,190 words
- B04 Vec and HashMap: arrays, collections and lookups 1,368 words
- B05 Structs and methods: classes without the inheritance 1,258 words
- B06 Enums and match: states that cannot be forgotten 1,418 words
- B07 Option and Result: null and exceptions, first look 1,496 words
- B08 Modules and crates: namespaces, files and visibility 1,462 words
- B09 Reading compiler errors: the bridge to ownership 1,335 words