The YouTube channel "No Boilerplate" turned this into a 10-minute video version, for anyone that prefers video:<p><a href="https://www.youtube.com/watch?v=br3GIIQeefY">https://www.youtube.com/watch?v=br3GIIQeefY</a>
As a recent newcomer to Rust, I find Amos' articles an indispensable source of knowledge. His post on recursive iterators [1] has been a lifesaver while I was working on my problem. Thanks, Amos!<p>[1]: <a href="https://fasterthanli.me/articles/recursive-iterators-rust" rel="nofollow noreferrer">https://fasterthanli.me/articles/recursive-iterators-rust</a>
This is, more or less, how I learned Rust circa 2015 (might have been a couple years later). I quickly started to write programs like I would have in C but got completely thwarted by the borrow checker because I wanted pointers everywhere. This made me throw my hands up and leave for other languages.<p>However, 8 years later I did eventually come to love rust after learning the One Weird Trick of using indices instead of pointers.
I know this is not going to make me an expert in Rust. That'll probably take 10 years. But this is just the kind of thing I was looking for to get started with Rust. Thanks for sharing it here.
Feels like every language should have an introduction like this. It's frustrating that lang intros are either your very basic and trivial example, or a full-blown set of tutorials, nothing in-between.<p>I also chuckled at the "20 minute read".
Also useful is the "Learn X in Y Minutes" page for Rust.<p><a href="https://learnxinyminutes.com/docs/rust/" rel="nofollow noreferrer">https://learnxinyminutes.com/docs/rust/</a>
Can someone explain to me where the feeling_lucky variables comes from in the match example? I don't get it. The variable isn't defined anywhere in the relevant scope.
This might not be a popular opinion, but - I love the idea of Rust, but the language itself seems needlessly complex to me. It looks like the authors tried to cover so many esoteric usecases that the result is more like C++ than C (which is not good in my eyes).<p>One example:<p>> `let` patterns can be used as conditions in `if`:<p>Anyway, this tutorial looks great, I'll give Rust another go when I have a good project for it, but to me it seems there is a great need for a simpler language with similar memory management. Rust is just too complex, imho.