DEV Community

Discussion on: Why I choose C++

Collapse
 
kaeptnkrunch profile image
Stephan B. R. Langenau • Edited

Thanks. C is also a good way to start. Normally when you understand C you understand also C++.

Note:
I mean when you understand the basic principles of programming it is easier to learn a new programming language.

Thread Thread
 
mc8 profile image
Max

maybe, maybe not. If you get into modern C++ (from C++11 onwards) the two are almost like two different languages :)

Thread Thread
 
selectiveduplicate profile image
Abu Sakib

C++ does have some unique features, that are totally alien to a C programmer. Templates, classes, containers like vector and map to name a few; not to mention how C++ offers new way to assign variables. But still, they don't come as utter shocks if someone knows C and has done OOP before. The point is there are common grounds and smells familiar; and they are two different languages.

Thread Thread
 
kaeptnkrunch profile image
Stephan B. R. Langenau

Of course that's what I said. They are still different languages. But when you are familiar with C I guess with some practice you understand C++

Thread Thread
 
mc8 profile image
Max

Agreed, what I meant is that if your goal is to learn C++, just start directly with C++ and forget about C (for now). This way you can start with the right practices (for C++) from the beginning.
There's a nice talk (with a very misleading title) from Kate Gregory "Stop teaching C" CppCon 2015 which I found very illuminating when approaching C++ professionally for the Nth time

Thread Thread
 
kaeptnkrunch profile image
Stephan B. R. Langenau

Thanks. I will look after the video. 👌

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
selectiveduplicate profile image
Abu Sakib

Would look into the video. And I agree if the goal is to learn C++, then dive right into it. But speaking from an academic perspective, I haven't seen C++ taught first-hand anywhere. Usually it's C (or something other) for introduction to the art, then Java or C++ or whatever. I had to learn C in my university's introductory course.