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
6
u/[deleted] Jul 08 '19 edited Jul 08 '19
Both. Don't get pigeon-holed into a specific line of thinking. If you want to be a good programmer, its not enough to know the libraries and common coding patterns, you need to understand why these patterns exist and what are their straights and weaknesses. Which means that you need to constantly expand your horizons and challenge yourself to try new things.
And of course, C++ is much more difficult to master, since it's more complex and has a lot of idiosyncratic behaviour. Python has its own share of this stuff of course, such as metaclasses, decorators and descriptors.