Should I learn C++ or Rust?
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?
12 comments
[ 0.27 ms ] story [ 39.4 ms ] threadI would recommend risc-v assembly, and to run it on x86_64/arm/etc with an interpreter.
On the flip side, Rust has great error messages and boasts a robust package manager, “cargo” (more convenient than say CMake) but lacks libraries such as STB, Catch2, nlohmann::json, and DirectX Math, OpenGL, …
Although there are bindings to libraries for DirectX Math created by others, the question remains: are they genuinely production-ready? C and C++ have a long history, they are different languages, but they are arguably orthogonal. Not completely different.
I would say: do not focus on languages, more on solving problems. That means, learn fundamental subjects well (geometry, linear algebra, calculus, differential equations). If people like Karpathy and Jensen are right, then being very good at a particular programming language might not have much of an importance.
https://karpathy.medium.com/software-2-0-a64152b37c35
Eventually you will appreciate both languages' pros and cons, depending how you use them in each case separately.
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++.
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.