loading...

Discussion on: Why I choose C++

mc8 profile image
MC-8

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 Author

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
MC-8

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 Author

Thanks. I will look after the video. 👌

Thread Thread
jmau111 profile image
Julien Maury

sorry I should have told you I want to learn both, which is misleading here.

Thread Thread
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.