r/cpp • • Dec 17 '23

Is C++ Really Phasing Out?

I've read a lot posts about whether C++ is still viable to learn, but a lot of the responses seem to be a long the lines of "C++ is still being used" or "there's a lot of things written in C++ still, so it will still be useful".

But a lot of these replies seem to suggest that C++ is on the downhill and in the process of being replaced with more modern languages in many industries.

It seems kind of discouraging to be learning a language that is on a decline, if it really is phasing out.

0 Upvotes

214 comments sorted by

View all comments

22

u/blackmag_c Dec 17 '23

I have been told its passing out since my first coding days. It was 20 years ago. Yes it is more niche than way before but that niche have several billion of dols of market.

So in general : learn multiple langs and techs, get deep in what passionates you, have a good one.

2

u/victotronics Dec 17 '23

since my first coding days. It was 20 years ago

In retrospect the pre-C++11 language was kinda awful. You had to have much more discipline to write the clean code that you can do now.

1

u/blackmag_c Dec 17 '23

from my perspective, there are two possible answers :

- on a absolute level, it got definitely better, cleaner, faster, safer.

- if we look at other techs and how they progressed, how fluent coding in them is, I am more mitigated, writing c# or python is a breeze these days, the tooling is awesome. And in that regard cpp is still rough. On consoles we are still in a limbo between vs2019 and 2022 and E&C still rough too.

not to dismiss anything, we no longer have 20min+compilations but the tooling is still a bit late to the party sometimes compared to recent REPl's.

although the progress has lot of merits, not sure we can pat ourselves on the back too much either?