Learn Rust, three minutes a day
Rust from the first variable to threads, in bite-sized lessons you can do on your phone. Every example is real Rust, checked by the compiler, and every answer is a tap: does this compile, what does it print, where is the bug.
Free, about three minutes a lesson, 35 units. On the web now; the Android app is coming to Google Play.
What you will learn
Basics
Write small programs with variables, numbers, functions, and loops.
Ownership
Know who owns each value, and when to move, copy, or borrow.
Structs and enums
Model your own data and handle every case with match.
Traits and generics
Share behavior across types and write code that works for many.
Error handling
Return errors with Result, pass them up with ?, and make your own.
Lifetimes
Read and write lifetime annotations, and fix borrow errors.
Smart pointers
Use Box, Rc, and RefCell, and know when each one fits.
Concurrency
Run work on threads and share data safely between them.
Iterators and closures
Chain iterator adapters and pass closures to them.
How it works
- A short idea first, then quick questions: tap an answer, order lines, sort, match or find the bug.
- Wrong answers come back at the end until they stick.
- Streaks, XP, leagues and races with friends keep the habit going.
- Spaced review brings back what you are about to forget.