3 ms·
That is the best article on Rust I've ever seen. Better than the Rust book. I've been saying that Rust needed a book that wasn't written by the designers of the
by Animats 6y ago
That is the best article on Rust I've ever seen. Better than the Rust book. I've been saying that Rust needed a book that wasn't written by the designers of the language, who are too close to it. Now we have one.
- tgv 6y agoBut it only covers the very basics. Disclaimer: I've only scrolled through it, but the code snippets are all small. It does show an admirable amount of Rust's syntax, but it's not very discoverable, whereas the book is reasonably well structured (although not for novices, who have forgotten a specific term). The link also doesn't deal with larger programs: there's not an Rc<T> on the page, let alone something like an Arena and unsafe code, and it's really necessary for complex programs. So, IMO: not better than the Rust book. It gives a first glance of Rust, something to accustom the eyes to a different syntax, but sidesteps the difficult bits, which can make transitioning so frustrating.
- trumpeta 6y agoThere are plenty of cases where you can write a complex program in Rust without ever needing those things.
- lordnacho 6y agoI've favourited the article. It's a good complement to the Rust Book, which has more detail. This kind of summary doc is great for discovery, you skim it and you find something that you could have written differently, or you realise there's an idiom you weren't using. No substiture for the book, though.
- EugeneOZ 6y agoIt's your opinion and I'm not arguing: a lot of people love the Rust book, but some (including me) simply can’t read it because of the style of writing and cases when you discover some interesting and deep topic but the author just gives 1 example in 5-10 lines of code and that's all. I think that things like Mutexes or Boxes are deep enough to have 30-50 pages dedicated to them, and I can say this not only about Mutexes and Boxes. When explaining some powerful things, one need not only explain how they work, but also what kinds of real tasks they can solve - ways of usage are obvious for you when you know it and have experience of usage them, but absolutely opaque and not obvious when you reading about them for the first time.
- ibraheemdev 6y agoI highly recommend Jon Gjenset's streams for more advanced Rust concepts like lifetimes or interior mutability. He goes into depth explaining how they work, what kinds of problems they solve, and gives tons of great examples.
- fasterthanlime 6y agoI have a lot of Rust articles[1] that go into a lot more depth. They're mostly adventures though, we learn about ICMP, ELF, file systems etc. Some love that style (the detours, the stream of consciousness) and some can't stand it. The Rust book is excellent, and a completely different style — they're complementary! [1]: https://fasterthanli.me/tags/rust https://fasterthanli.me/tags/rust
- Aeolun 6y agoI don’t think you should have much unsafe code as a rust beginner.
- deleted 6y ago[deleted]
- dbaupp 6y agoYou may be also interested in the many existing teaching resources published by non-language-designers (whatever that means for a community-driven project like Rust), such as Rustlings and Rust by Example at https://www.rust-lang.org/learn https://www.rust-lang.org/learn if the book doesn’t satisfy whatever criterion you think disqualify it. Some of it is published via the rust-lang.org website, but it was/is maintained by different people who work on the language, compiler, std lib (etc). The project has a large number of people across many teams: https://www.rust-lang.org/governance https://www.rust-lang.org/governance
- timClicks 6y agoThere are a few other well regarded resources. Programming Rust from Blandy, Orendorff, and Tindall/O'Reilly is great if you have lots of knowledge in C/C++. Rust in Action from McNamara/Manning is great if you prefer to learn by building projects. Disclaimer: am the author of Rust in Action
- Xunjin 6y agoRust Crash Course by Michael Snoyman is great. You can get a free copy at fpcomplete. Did a free course in December with him, and I'm still watching the classes because it has so much great info there. Also I do recommend the Rust Programming, it really teaches you "how/why" use Rust. To conclude, rust-learning (at GitHub) have great links, amazing articles about parts of the language, there is so much knowledge there, just go collect it :P
- nobleach 6y agoLink for those interested: https://www.snoyman.com/blog/2018/10/introducing-rust-crash-course https://www.snoyman.com/blog/2018/10/introducing-rust-crash-...
- jjice 6y agoOut of curiosity, what don't you like about the Rust book? I personally loved it, reading about a year and a half ago. I thought they covered most of what I needed, was well written, and had plenty of good examples.
- steveklabnik 6y agoNot all writing clicks with every reader, it is impossible. He previously said “That's too hard for an introductory book and not detailed enough for a reference manual.” It is very difficult to get this right, given our goals, and so reasonable people may think we fall short there.
- nobleach 6y agoI'd LOVE it if we could get a Why's Poignant Guide To Rust... I find that kind of weird humor helps my mind remember things.
- christiansakai 6y agoThis article is very very basic beginner Rust. You'll be disappointed if you expect to encounter Rust in real world like this article.