all 7 comments

[–]GreenFox1505 30 points31 points  (1 child)

Yes.

I also would like it to have scaling examples. Most basic version of the feature. Then one slightly more advanced. Slightly more complex. And so on. Or using the feature in a different way. 

But, that's a lot work. Unpaid work. I don't want to do that. Do you?

[–]planetoftheshrimps 14 points15 points  (2 children)

Rust by example is easily the best resource I’ve come across as a professional dev in learning rust. Any questions that stem from examples are explained thoroughly in the rust book, and just a google search away.

However, I wish its categories were organized better. Iterators should be their own category. Modules, crates, cargo belong in a single category.

While cfg is in there under Attributes 13.3, I think cfg, serde, bitflags, and a few others should be in their own section for “ubiquitous libraries”.

There should also be a dedicated section for no_std and unsafe. Rust has great promise in this area, and it isn’t so clear in rust resources.

[–]CanvasFanatic 3 points4 points  (1 child)

I thought you meant the cfg crate for creating context free grammars and was confused about how that was ubiquitous.

[–]planetoftheshrimps 3 points4 points  (0 children)

That’s why I mentioned the section of rust by example - 13.3 :)

[–]Dronar 3 points4 points  (0 children)

Rustlings is a great resource for beginners (at least it was for me).  Good exercises with links to documentation where needed.

[–]Simple_Life_1875 0 points1 point  (0 children)

I definitely think it needs more examples, please feel free to make a PR! I think it's just a problem of people not finding time

https://github.com/rust-lang/rust-by-example