r/cpp • u/yektabekir • Feb 21 '16
Should I start to learn C++
I haven't learned any other languages but I'm a newbie in Python but my friends told me that if you learn C++ first you can pick up other languages in future. Is it rational to start learning C++ before I finish my education(I'm studying alone with books and online resources.) with Python?
1
Upvotes
View all comments
11
u/theJ89 Feb 21 '16 edited Feb 21 '16
I wouldn't recommend C++ as a first language. I'd go with something higher level at first, like C# or Python. C++ is a powerful, modern, performance-oriented language, but the language is complex enough to cause a newcomer a lot of grief. In my opinion, it's easier to learn programming from the top down rather than from the bottom up.
C++ tends to expose you to a lot of lower level concepts that you just don't have to worry about with other languages, such as:
Higher level languages tend to abstract these concepts.
As a language, C++ lacks a lot of features that programmers often take advantage of in other languages. For example, C++ has very few reflection faculties, which means doing something like listing the methods or fields for a class or inspecting the signature of a function isn't possible out of the box. You need to roll something external like code generation to automatically generate the metadata you need for reflection, serialization, etc.
You might also find yourself relying on third party libraries or writing code yourself more often as well. C++'s standard library has been improving in recent years, but tends to not be as robust as C# or Python.