Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: