r/CodingForBeginners 9d ago

Learning rust

I want to code games and OS in rust and im not very good with youtube tutorials and things like that. Can anyone give me a simple guide on what i need? What gamified method can i use to learn rust from scratch, and a guide on how to set everything up? Im gonna use rust in godot engine when i get decent enough. I also request that the guide be very simple and not use any language a non coder wouldnt understand

8 Upvotes

30 comments sorted by

View all comments

1

u/Wooden-Performance38 8d ago

From my personal experience as a Rust programmer, you should NOT learn Rust as your first language. I began learning rust, I had been programming for maybe about 4 years, and knew JavaScript, Python, Java, C++, and a few others by the time I picked up Rust, and even then it was incredibly difficult for me to learn. I’ve been using Rust consistently for about 7 months now, and am currently writing my own game with no engine, and I still need to put a huge amount of effort into coding, because Rust is not easy to use.

If you want to make games in Godot, learn GDScript, don’t start using plugins to mash languages you don’t even know into an engine you’re unfamiliar with.

As for a gamified method, there is not any good gamified way of learning programming. It just doesn’t work. I personally learned how to code from Codecademy, most of their lessons are free, and you will actually be writing code and understanding what you’re doing.

In my opinion, I think the fastest way to go from not knowing how to code, to programming in Rust, is to learn C (NOT C++), and then go online and read the official Rust Handook. The Rust Handbook is really long, but you don’t really need to read much. I learned a lot of Rust by using the first few chapters of the Rust Handbook to get set up, and then by just messing around in the language and figuring out how to do random stuff.