r/cpp • • Jul 08 '19

C++ vs. Python

Although I have a bit of experience in both, I'm still having a hard time contemplating which of the two I should be aiming for mastery. Python is very beginner friendly, with a lot of resources and libraries. On the other hand, C++ is known for being a powerful language, while being complex and with a not so small learning curve. I wanted to focus more on robotics and you know, the cool stuff. But wait there's more...... Rasberry pi (python) or Arduino (c++). I'm just a naive 17 year old in my freshmen year of college, and am taking Electronics Engineering. Please enlighten me with your opinions. 😅

2 Upvotes

29 comments sorted by

View all comments

16

u/JohnVanClouds Jul 08 '19

I'm think C++ is a better choice. Why? You'll know what's going on under the hood. And it's not too hard to learn... but mastering is a different story. But still you can learn new things whenever you want. And change from C++ to Python is a way easier than Python to C++.

5

u/degski Jul 08 '19 edited Jul 08 '19

I agree, this mythical 'python is easy for beginners' is just that, mythical. To me, it looks all like gobbledygook [python], and trying to work through the scoping [when reading some code, unfortunately un-avoidable sometimes], based on indentation is just horrible hard and easy to get wrong.