4 ms·
Not all problems are specifically technical in nature. One of the big issues with Go is that it's got a steep learning curve. (There was an article about this
by devmor 6y ago
Not all problems are specifically technical in nature.
One of the big issues with Go is that it's got a steep learning curve. (There was an article about this posted on HN yesterday, in fact)
Rust, by contrast, is an extremely easy language to learn. Of all the languages I've picked up at least partially in my ~12 years of professional programming, Rust was probably second only to to PHP in "get up and start running with it".
If Discord is trying to pick up new developers, or cross discipline seniors to improve their talent pool, Rust is definitely a better choice than Go.
- snth 6y agoThis is the reverse of the characterization of the two languages I usually see. I usually see "Go is easy to learn and use" and "Rust is hard to learn but has performance advantages". I often see comments about how you "really need to go read the Rust book" and not just try to pick up Rust on the fly.
- steveklabnik 6y agoNot to discount your experience, because I think that this topic has a lot of nuance and is very different on an individual level, but most people regard Go as easy to learn, and Rust as difficult to learn. I wish we had a good way to evaluate this question in a quantitative way, but I haven't seen one yet. So reasonable people are going to disagree on the answers here.
- domano 6y agoThis is the first time i have seen this argument. Just understanding ownership seems more complex to me than writing a simple web app in go or PHP for that matter. I am sure rust is great but it is at the very least more difficult to learn then go.
- icod 6y agoto this day I can't wrap my head around the need to unwrap almost every single variable/function/whatever. I don't get Rust. I got Go very easily. Rust just doesn't make sense for me. In Go I can just write down my thoughts and they translate to code easy. I don't even know which mental game I have to play in Rust. And all the conventions in Rust are another step. The final nail is the un-community of Rust. I still have no idea how to write a simple RESTful http server with a mongodb backend. I've asked only to have been met with downvotes on Reddit. The official MongoDB discourse didn't answer either. Time and again I want to do something with it but every time I just quit frustrated and irritated of the complexity of everything in Rust land.
- cyphar 6y ago> to this day I can't wrap my head around the need to unwrap almost every single variable/function/whatever. Think of Result as (foo, err) bundled into one thing. result.unwrap() is then equivalent to: if err != nil { panic(err) } And the ? operator is: if err != nil { return ..., err } You don't need to unwrap (or ?) everything, just things that return a Result -- which is the same as functions which return an error in Go. The advantage of Result is that you can never forget to handle the error because the compiler requires you to get the value out of the Result in such a way that you have to handle errors. Don't get me wrong, there are complicated things in Rust, I just don't see how Result-based error handling is one of them. This is also not a new idea, many languages have something similar.