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/Ikkepop Jul 08 '19

Raspberry pi runs c++ just fine, not limited to python. Infact theres a big performance advantage

13

u/Pazer2 Jul 08 '19

To be clear for any beginners, the performance of c++ will be greater than python in almost all cases (it's not a raspberry pi thing). It's a question of balancing ease of use/development speed (python, subjectively) and runtime speed (c++).

11

u/sternone_2 Jul 09 '19

If python runs something fast it's because the library it uses is written in C++

;-)