#C++ or Rust ?!?!?

1 messages · Page 1 of 1 (latest)

solar jay
#

I know the basics of C/C++, willing to upgrade my skills to intermediate level but suddenly stumbled upon the popularity of Rust(especially becoming official second language for Linux kernel). Should I enhance my knowledge of C++ or go with Rust, don't know which one will give me better opportunities. I know I would have to eventually learn both but would be helpful if someone sheds light on which one should I go with first? Thank you.

jagged jacinth
#

Short term probably C++

solar jay
jagged jacinth
#

A couple of years?

#

idk

distant nacelle
#

the actual question is "what do you want to be as a programmer?" if you want to be a web dev, go with Rust as it can be use there. If you want to be a embedded system eng, I would say go with C++ (I would actually say go with C).

jagged jacinth
#

Rust takeover is real

distant nacelle
#

My point is that in embedded, replacing every C lines with Rust would bankrupt the world lol. Maybe new independent projects would be started with Rust, but legacy projects would never. C will remain the most popular in my lifetime I think.

solar jay
distant nacelle
# solar jay I don't get why prioritize c over c++?

because C is the most used language in embedded. There is some project that mix C and C++, but every embedded codebase are mostly written in C. Matter of fact, almost, if not all, your embedded devices has C code in it, which is the reason why it does still dominate the landscape of programming languages even today.

tawdry coyote
#

RUST!!!!

solar jay
tawdry coyote
jagged jacinth
#

Rust is enjoyable to write

timber remnant
#

I learn both C++ and Rust as my power combo.

fathom latch
#

embedded / distributed system is mostly C/C++, but some shop might use rust

#

I would say before deciding, why not look at the current job market / job posting in your area

#

and in your area I mean anywhere you can drive 2-3h from your house
and possibly where you want to live in the future

#

unless you can find WFH remote jobs, that's another possibility

#

You want a stable job, stable income, in a programming language that you like to code into,
that pays well enough to sustain yourself with a good cushion

#

It's never about "fade" or whatever the next guy wants to do, it's about long-term job security,
unless you create your own shop, startup, company

#

In my case, I studied a bunch of programming languages to have options, lots of options

#

also, avoid getting into debt, or huge student debt, or car payments crap, or credit card debts

#

If I was you I would get better at both and even other languages

#

where i live, almost no jobs wants rust but YMMV.

#

when I searched Rust on Google, it gave me 177 results, but if you look closely they ask for LLM, Python, C 🤣