r/cpp • u/mEmaY_Y • 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
25
u/MotherOfTheShizznit Jul 08 '19
I'm going to go against the grain and not claim that one language is harder than the other and that therefore you should learn the harder language first as it will make the rest easy.
When people make that claim, I feel that they are reducing programming languages to their syntax. In my experience, doing that is a mistake. I've been programming in C++ for 20 years and I'm still "learning it". You'd think I'd be done learning its syntax a long time ago right? Yes, you're right. Learning
if/elseandforloops takes a few days of school assignments to internalize and then you're done for the rest of your life.But I'm still learning C++. That's because programming "languages" are actually programming "universes" and you're never done exploring universes.
You've picked a destination. The robotics galaxy. The good spaceship captain will do what needs to be done in the most efficient and simplest way. I think C++ is more complex than python and carries with it so many more idiosyncrasies that would slow you down. If you do not need the power efficiency of C++ and can reach your destination with python, then use python. I think reaching goals is more satisfying and motivating than having mastered complexity for its own sake.