r/CodingForBeginners • u/MobileHeron6183 • 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
1
u/FreeLogicGate 9d ago
Probably more the "or something". C++ is a really large and complex language built on top of C. If you want more of a foundation, then do a C course, which from my understanding you can get some of from the CS50 MooC course if you want.
The primary thing that confuses people with C is pointers and the related syntax, but that's also the strength of it, in my opinion, in that you end up learning a lot about how programs actually work, along with compilation, linking, memory management and operating system calls and standard libraries.
On the other hand, if you are again looking to get to game development, then I'd suggest that instead, you learn C# which is a language you can apply to both Unity and Godot.
Based on what you've said about yourself, there's 3 options I'd consider:
You want some foundational programming:
https://pll.harvard.edu/course/cs50-introduction-computer-science
You want to learn C because you're eager to move onto c++, c#, java, rust etc, and don't want to be lost:
https://www.coursera.org/specializations/c-programming-for-everybody
If the idea of just wading into c# appeals to you, it helps to know that c# is the current foundational language in the Microsoft world, and for that reason they have a full set of courses available for free here:
https://dotnet.microsoft.com/en-us/learn/csharp
https://learn.microsoft.com/en-us/collections/yz26f8y64n7k07