by Repose0941 on 3/1/24, 5:32 PM with 11 comments
OK, A little context, i know C, Python and JS. I like C so much and i code to learn and for fun(one day to make FOSS apps too UwU).
So i want to learn two things, QT and Games, my first thought was, learn C++, the game engine is Godot. both Godot and QT have a good support for C++, Rust on these are not 100% yet, but rust is getting popular and i want to continue up-to-date. so what do you guys think about?
by foobarbaz33 on 3/2/24, 3:14 PM
I'd vote C++. Rust is terrible for complex problems requiring experimentation (ie don't know what you don't know) and tight feed back loops. For gaming it's probably the wrong choice.
by stefanos82 on 3/2/24, 8:21 PM
You can learn both, but for sure start with C++ first; this way, you will understand why they created Rust back in the day, even though C++ has evolved and still does.
Eventually you will appreciate both languages' pros and cons, depending how you use them in each case separately.
by iExploder on 3/2/24, 10:34 AM
learn Rust so you can tell others you know Rust, learn C++ to actually get a job and do real work :)
by colund on 3/4/24, 4:58 PM
Rust is still lacking good GUI libraries and C++ and there are lots of libraries out there written in C++. Rust is more up and coming. That said in my opinion Rust is a nicer and better language since you get cargo and a modern safe efficient language. In my opinion Cargo is great and CMake and similar tools for C++ are not nearly as nice.
by sylware on 3/1/24, 5:58 PM
Plain and simple C99, even though C99 syntax is already too rich.
I would recommend risc-v assembly, and to run it on x86_64/arm/etc with an interpreter.
by sn9 on 3/3/24, 7:52 PM
The argument for learning Rust before C++ is that the compiler will teach you the best practices you'd have to discover the hard way when programming in C++.
If you have to work in C++, you can take that intuition with you.
But if game dev is your motivation, it makes sense to just jump to C++.
by ActorNightly on 3/4/24, 9:55 PM
Rust is enterprised focused. Not really applicable for things like game design.
You already pretty much know C++, its just C with a few extensions mostly around classes. Good C++ codebases avoid most of the stuff in C++ language anyways.
by speedgoose on 3/2/24, 6:09 AM
Learn both, but use Rust long term.