3 ms·
Rust's community should provide mentoring at all levels This was an issue as I learned. With widely popular languages, googling a simple question like "revers
by michaelchisari 10y ago
Rust's community should provide mentoring at all levels
This was an issue as I learned. With widely popular languages, googling a simple question like "reverse a list javascript" or "sum an array php" comes up with a hundred different suggestions and discussions.
With Rust, most of the discussion is very low level, often by people working on Rust itself and usually the rare answer you find is terribly out of date.
Just having a more stable language so answers don't become obsolete is a big step, but it will still take time for those very basic questions to get answered.
- kazagistar 10y agoAre those real example questions? Cause I stackoverflow program a fair share, but those seem a little bit low level for any language, and if you google those for Rust, I end up with the docs for Vec and Iterator, which contain exactly the reverse and sum methods. And this isn't some case of "fuck you read the entire docs", the methods contain extensive built in examples (copypasted from their respective method docs): let mut v = [1, 2, 3]; v.reverse(); assert!(v == [3, 2, 1]); let a = [1, 2, 3]; let sum: i32 = a.iter().sum(); assert_eq!(sum, 6); I'm not saying everything is simple, and there are hard parts of rust to learn. But as far as solving simple problems, I haven't ever had an easier time then with Rust.
- michaelchisari 10y agoAre those real example questions? No, they were just off the top of my head, not to be taken literally. And the docs aren't organized as a tutorial. If I don't know what a method or type does, or even that it exists, I'm not going to know to look there for examples.
- kazagistar 10y agoOk fair enough. Those two examples though are specifically not good examples, and its hard to improve documentation without specific examples of what is missing.
- mintplant 10y agoI've found the Rust community on Reddit to be very helpful. Every one of my questions, from borrow checker errors to compiler internals, has been answered within a day.