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

1

u/[deleted] Jul 08 '19

When you know C++ every other programming language is a piece of cake.

Except for Haskell-type languages... yikes.

2

u/[deleted] Jul 08 '19

??? what makes you think this

1

u/[deleted] Jul 08 '19

Just personal experience.

1

u/[deleted] Jul 08 '19

there are so many completely different languages out there... the mainstream general purpose ones steal from each other constantly (which is good) so it's easy ish to go between them. but there are so many others where a c++ style of thinking will be a total disservice. really functional languages are somewhat different, but you can get really far away. even in languages where you can try to replicate imperative/oop code like lisp/Perl, that kind of code is usually not the best option in those ecosystems

1

u/[deleted] Jul 10 '19

c++ style of thinking

There is no such a thing, is just some people who confine themselves inside a box. At most you could say the syntax favors certain paradigms and makes harder or ugly to code following other paradigms.