4 ms·
I actually have started learning rust and I do like it. I am hoping to get to a point where the ownership structure becomes obvious in my mind. If I had to ma
by 3a2d29 4y ago
I actually have started learning rust and I do like it. I am hoping to get to a point where the ownership structure becomes obvious in my mind.
If I had to make a game right now though, I would be way faster in C++.
That said though, I do hope as I learn rust everything becomes obvious. I would be very happy if I get equally as productive (since that means I can use rust for everything).
I guess I just worry that certain things are like custom graph data structures, where suddenly ownership is a huge issue.
- littlestymaar 4y ago> If I had to make a game right now though, I would be way faster in C++. I've no doubt about that, learning Rust sometimes feels like having to swim with your hands tied in the back. > That said though, I do hope as I learn rust everything becomes obvious. I would be very happy if I get equally as productive (since that means I can use rust for everything). Good luck:), don't be afraid to stop and try again a few weeks later if you get too frustrated: I struggled a bit to learn rust early 2016 and after a few weeks of night hacking, I had no more free time to carry on and I was still very confused about all of that. Then, I stopped for almost 6 months, having read of few blog posts in Reddit in the meantime but nothing especially eye opening or anything, and when I got back to Rust for some reason everything sounded clear and I completed my first project in Rust very smoothly, as if my brain had been slowly digesting the concepts in a background thread during that time. > I guess I just worry that certain things are like custom graph data structures, where suddenly ownership is a huge issue. Advice: avoid them as much as possible (most of my former use of graph-like structures where in fact related to programming patterns and not strictly necessary for what I wanted to do) and if you're really manipulating graphs, you should probably use a dedicated library (I think petgraph is the most popular but these kind of things can be workload dependent so you might need to go for another one).