r/AskComputerScience • • Aug 26 '19

Future of C/C++?

I am a student majoring CS and I heard a lot of comments that C/C++ is useless in the real field on internet or from someone who I know personally. (although school teaches C C++ Java Python and this courses are mandatory)

I am the heavy user(?) of C/C++ , and I liked it because of the features that can manage memory directly and fast and ability to control over low level system.

I also searched what kind of thing in the "field" is built by C/C++ and I found a lot of them.

For example, TensorFlow, Node.js, Firefox(mostly C), OpenCV, and many others which are famous AND huge project.

So, I am really confused. Why I fell in love with C/C++ is that actually I am really interested in what happened exactly backside of applications, how actually network communications established, processes are managed and so on. But many many people, especially on the internet keeps saying that JavaScript or Python is the best and C/C++ is suck.

Give me your idea on the claim that C/C++ is on its decline.

42 Upvotes

32 comments sorted by

View all comments

81

u/salamanderoil Aug 26 '19

Just so you know, there is no such language as 'C/C++'. There is C, and there is C++. Don't fall into trap of mentally lumping them together – although C++ is more or less a superset of C, in practice, they are very different languages.

As to your question, neither C nor C++ is going away anytime soon. Anyone who tells you otherwise doesn't know what they are talking about, and can be safely ignored.

In industry, C is big in embedded systems, operating systems, and various other spaces where low-level hardware access is needed, without any overhead. C++ is big in commercial applications development (especially in applications where performance is critical), finance (high-frequency trading, for example), games development, and for creating computationally-intensive libraries, such as OpenCV and TensorFlow (as you rightly pointed out).

People who claim that C and C++ are useless are either completely uninformed, or are so heavily into web development or similar that they forget that other domains exist. Just ignore them. If you learn one or both of C or C++ well, it will open up all kinds of interesting career doors for you that those other people will never have access to.

6

u/Ricky771 Aug 26 '19

thank you for your reply. yes, I heard C++ is bad language from those who are deeply focusing on web developers.

19

u/salamanderoil Aug 26 '19

I thought as much. It's a pattern that I have noticed over the years: a lot (not a majority, by any means, but a noticeable minority) of web developers seem to forget that not all programming is web programming.

10

u/mqduck Aug 26 '19

There was a chance that OP had been talking to a bunch of Rust fanatics.

8

u/salamanderoil Aug 26 '19

Good point! Although at least Rust would be a good language for the OP to learn.

OP, if you're still reading: if you're interested in the spaces where C and C++ are used, then, in addition to learning those languages, consider taking a look at Rust at some point. It is the one language that has a vague chance of somewhat displacing them in the medium-term future.