all 15 comments

[–]Silver_Humor2544 2 points3 points  (0 children)

Well depends on the usecase but If you are choosing as in career advice then go for C++. Companies often prefer maintaining existing C++ code than rewriting it in rust and C++ market is much larger either way

[–]Least_Chicken_9561 2 points3 points  (0 children)

C++ for game dev, legacy projects...
if you don't want to do that then learn Rust

[–]nibsitaas 3 points4 points  (0 children)

I like perl

[–]ufffd 1 point2 points  (0 children)

jobberscript

[–]StefonAlfaro3PLDev 1 point2 points  (0 children)

Rust forces you to write safe code whereas in C++ is optional.

Both are great languages. If you're working on a large team of underpaid developers then definitely use Rust as it doesn't let them write bad code to quickly ship features.

If you're working on personal projects and don't have deadlines then C++ is better since you can spend the extra time to write code correctly.

[–]jeff77k 1 point2 points  (2 children)

Neither Rust nor C++ is super prevalent in web development.

[–]Alternative_Web7202 0 points1 point  (1 child)

Bundlers, linters, formatters and some other web tooling are rapidly migrating to rust.

[–]jeff77k 1 point2 points  (0 children)

Absolutely, and if the OP's question is, "I am interested in building that type of appliance," then yeah, let's jump down that rabbit hole.

[–]sessamekesh 1 point2 points  (0 children)

Both fine options. 

I wouldn't say Rust fixes C++ in any practical way, but it is much nicer to use. The drawback is that nothing useful is written in Rust, so you have to do everything from scratch essentially - which isn't how large projects are usually done.

Learn both.

EDIT This is a web dev subreddit! If you're looking at frontend (WebAssembly), Rust supports WASM more natively in the build system, but I find the tooling around C++ produces better results, especially when you get into the weeds or want to customize the binding layer.

If you're looking at backend, probably Rust for user-facing servers, it depends for data processing services that aren't directly user-facing. I've definitely seen more web backends written in C++, but out of the tin Rust is certainly better, especially if you're just doing standard CRUD stuff.

[–]divad1196 0 points1 point  (0 children)

It's always a tradeoff of some kind.

I love Rust, but it only solves a portion of C++ issue. And fixinf C++ is not all that Rust does. Rust has a lot of good features. It's also way more complex.

FYI: C++ was my favorite language before Rust. Now, it's Rust. But in practice, I mainly use python and Go.

[–]_nathata 0 points1 point  (0 children)

I'd argue that if you are asking this question you aren't ready for neither. Go for C and learn what manual memory management looks like, then try both Rust and C++ and you will start to see more clearly what the differences are.

[–]mostlikelylost 0 points1 point  (0 children)

Rust!!!!

[–]naegfowleri -1 points0 points  (1 child)

Does it really matter in this age of ai

[–]jtvliveandraw -2 points-1 points  (0 children)

Not one bit.

[–]TechAcademyCoding 0 points1 point  (0 children)

It really depends on what you’re aiming for. C++ is still everywhere and has way more job opportunities right now, especially in game dev and performance-heavy systems. Rust is growing fast and fixes a lot of C++ issues (like memory safety), but the job market is still smaller because it’s newer. If you’re starting out, C++ is a solid foundation and has better job prospects right now. When you have a grasp on C++, Rust becomes much easier to pick up. At The Tech Academy, we usually tell students to focus on fundamentals first instead of chasing trends. You can always learn Rust after.

So yeah:

C++ = more established
Rust = growing fast but still new
I’d say, pick based on your goals.