The recording and more findings is at https://everyonecancontribute.com/post/2020-10-07-cafe-3-git... The session took longer, because we failed to understand the principle of modules at first. We solved it after a while.
A more advanced attempt included Rocket.rs and Prometheus metrics instrumentation: https://everyonecancontribute.com/post/2021-06-30-cafe-36-ru...
For learning Rust (and later teaching), I got 2 books:
- Programming Rust: Fast, Safe Systems https://www.oreilly.com/library/view/programming-rust-2nd/97...
- Hands-on Rust: Effective Learning through 2D Game Development and Play https://pragprog.com/titles/hwrust/hands-on-rust/
I love gamification when learning things, and game development is something I always wanted to learn.
For a learning dev environment, I recommend Gitpod in your browser. Cargo and rustc come pre-installed in the default workspace image. A short example is in this blog post: https://about.gitlab.com/blog/2021/07/19/teams-gitpod-integr... (search for "Learn new programming languages: Rust")
More learning resources are at https://www.rust-lang.org/learn
The O’Reilly book by Jim Blandy and Jason Orendorff. It is a really fantastic book on a programming language, the best I’ve ever read. The new edition is due this year it seems.
https://www.oreilly.com/library/view/programming-rust-2nd/97...
2. Write 1 or more serious rust projects of your own choosing. Aim for projects that’ll be thousands of lines of code.
3. Read “Programming Rust”[1]
4. Write more projects
This is what I did anyway.
The Rust discord has a beginners channel which is invaluable for asking questions when you get stuck.
0: https://doc.rust-lang.org/book/
1: https://www.oreilly.com/library/view/programming-rust-2nd/97...
https://www.oreilly.com/library/view/programming-rust-2nd/97...
The book gives good visual explanations for how each of the code examples and it spends a good amount of time showing the relationship between the code examples and the borrow checker, OS, etc.
As most language books it spends a lot of time going through all the types, which I've always found incredibly boring - the same thing is the case with this book.
I'd recommend reading about strings and slices before moving on to the examples, but spread out the rest of those chapters in between the more interesting ones