TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Should I learn C++ or Rust?

10 pointsby Repose0941about 1 year ago
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?

8 comments

foobarbaz33about 1 year ago
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.
评论 #39581608 未加载
stefanos82about 1 year ago
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.<p>Eventually you will appreciate both languages&#x27; pros and cons, depending how you use them in each case separately.
iExploderabout 1 year ago
learn Rust so you can tell others you know Rust, learn C++ to actually get a job and do real work :)
colundabout 1 year ago
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.
评论 #39596959 未加载
sylwareabout 1 year ago
Plain and simple C99, even though C99 syntax is already too rich.<p>I would recommend risc-v assembly, and to run it on x86_64&#x2F;arm&#x2F;etc with an interpreter.
评论 #39565048 未加载
sn9about 1 year ago
The argument for learning Rust before C++ is that the compiler will teach you the best practices you&#x27;d have to discover the hard way when programming in C++.<p>If you have to work in C++, you can take that intuition with you.<p>But if game dev is your motivation, it makes sense to just jump to C++.
ActorNightlyabout 1 year ago
Rust is enterprised focused. Not really applicable for things like game design.<p>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.
speedgooseabout 1 year ago
Learn both, but use Rust long term.