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

Show parent comments

16

u/Jonny_H Dec 17 '23

Decline is relative - it can be a smaller proportion of "programmers" yet still growing in absolute numbers due to expansion of the sector.

-30

u/ecreddits Dec 17 '23

I'm more referring to it's decline in usage compared to more modern languages like Java and Python

28

u/[deleted] Dec 17 '23

C++ is just as 'modern' as Java

8

u/no-sig-available Dec 17 '23

it's decline in usage compared to more modern languages

The point is rather that if the software market grows by 50%, and C++ with "only" 25%, is that a decline, or a million new C++ jobs?!

The perspective is important!

13

u/Mrkol Dec 17 '23

Python and Java are no more modern than C++. Go look up when they first came out.

12

u/Jonny_H Dec 17 '23

Yes, my point was that even if c++ has fallen in proportion to those languages, there are likely significantly more total c++ programmers today than there were 10 years ago.

And I find it amusing that Python and Java are used as "More Modern Languages", when in total age they probably aren't as different as people think, the first python release being 1991 and not that different from the sort of time c++ was actually finalizing it's initial feature set, and even Java's 1995 release before the first "official" standard c++98 . They also tend to target a different use case to most c++ (especially python).

And all 3 languages really are examples of evolving languages - while many core structures of them are similar, the Java of 1995 is very different from Idiomatic java today, even if it is mostly backwards compatible. Same with c++ and python.

3

u/goranlepuz Dec 17 '23

C++ started in the 1980s (roughly), Java and Python in the '90s.

"More modern" is probably a misnomer now, 30-40 years later.

But more importantly, the three languages are hardly comparable. C++ is a more "bare metal" language, Java is a virtual machine one and Python is loosely typed, interpreted one.

=> You're making a pretty bad comparison there.

2

u/0-Joker-0 Dec 17 '23

C++ is a modern language :/.

1

u/[deleted] Dec 21 '23

What’s your source that it’s declining? Are you equating not growing as much as other languages with declining? Those mean different things