15 Nov 2024 - Douglas Krouth

Resources that we’re helpful for learning Rust; condensing standard advice from the Rust community.

TL;DR:


Rustlings

I’m a huge fan of Rustlings and I believe it’s the fastest way to learn Rust’s syntax. It provides a bridge from knowing nothing about the language to actually being able to write small Rust programs, which is satisfying. The material also provides an alternative to the “just build something” advice/ethos that is commonly recommended when learning new languages. I don’t believe the “just build something” advice is bad but I’ve found that Rust has a higher initial learning curve when compared to a language like Python or Bash.

The material is broken into modules that each represent different language concepts; each model has a set of unit tests that you need to get to pass before progressing. I love this teaching style as it also serves to teach the language’s test syntax. Go has similar projects (gopherlings, golings) that replicate this format.

I highly recommend keeping a browser with the Rust book open while completing the modules; read as much as possible on each subject before progressing.


Rust by Example

A more standard approach to learning the language, docs remind me of A Tour of Go or a more focused Tour of Scala.

The snippets are really quick to work through and offer a pared down option that can guide you through main concepts, “what’s what” in the Rust Book.


Easy Rust

Great supplement to the Rust Book, provides a lot of examples.

Georust

Nice primer on Geospatial concepts, easy to follow examples for using Rust to process geospatial data.


Potpourri