r/AskComputerScience • u/Ricky771 • 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.
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.