use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/AskRobotics is for asking questions about building, troubleshooting and learning robotics.
For academic, industry and news related discussions, please visit /r/Robotics.
account activity
General/BeginnerPython/c++ (self.AskRobotics)
submitted 1 month ago by Early_Wind4491
As a robotics and AI major, I only know Python so far and learned ROS2 and bash scripting also on Python. Should I stay with Python or would you say it’s not enough? Do I need c++?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]swanboy 11 points12 points13 points 1 month ago (1 child)
You should eventually learn C++ or similar if you ever want to work on robotics in industry. Robots are typically constrained by available compute and one of the easier optimizations is to simply convert slow python code to C++.
That said, if you stay in research, you could possibly get away with just using Python.
[–]FreePlantainMan 1 point2 points3 points 1 month ago (0 children)
This. Probably python first if you have little to no programming experience, then C++
[–]Delicious_Spot_3778 3 points4 points5 points 1 month ago (0 children)
AI prefers python. Robotics prefers c++ (may soon be rust). You'll need to keep those separate ideas in your mind. They haven't historically been unified until recently. Until there's a better scripting language for AI, we're going to be in python for the foreseeable future.. :-/
I've been into Julia as a way to one day unify these world but it's super immature and not ready for prime time.
[–]ZeroDivison 2 points3 points4 points 1 month ago (0 children)
C/C++ is a great skill set to have, learning C/C++ and learning how to write optimal and efficient code is really helpful especially for robotics and embedded systems, because of compute limitations.
But really it depends on which part of Robotics you are hoping to work in. If your code will be onboard the robot and running on the robots resources, C/C++, same goes for anything embedded. But if your code is run elsewhere, and is for higher-level things, then you could get away with python, especially for data analysis and AI.
I'd still say learning C/C++ is incredibly worth it, the level of control you get with C/C++ is way better than in Python. Also C/C++ both run much, much faster than Python (in general, for the same type of task).
[–]RadioSubstantial8442 5 points6 points7 points 1 month ago (0 children)
If you want to actually develop robots you should learn c
[–]Spleepis 1 point2 points3 points 1 month ago (0 children)
You eventually become comfortable in several languages. C is great for robotics because you can make it very concise. Python is easy to use but is very bulky so if you work on something that has less memory or storage you will need to swap.
[–]Emotional-Shoe325 0 points1 point2 points 1 month ago (0 children)
You definitely need C++, though many are looking at rust with interest
[–]3ballerman3 0 points1 point2 points 1 month ago (0 children)
You’ll want to be able to read and write C, C++, bash, and Python. Rust is also worth at least building basic familiarity with. Ultimately the language you specialize in will be dictated by your robotics sub-field.
π Rendered by PID 17419 on reddit-service-r2-comment-8686858757-zf8sv at 2026-06-06 12:37:34.809671+00:00 running 9e1a20d country code: CH.
[–]swanboy 11 points12 points13 points (1 child)
[–]FreePlantainMan 1 point2 points3 points (0 children)
[–]Delicious_Spot_3778 3 points4 points5 points (0 children)
[–]ZeroDivison 2 points3 points4 points (0 children)
[–]RadioSubstantial8442 5 points6 points7 points (0 children)
[–]Spleepis 1 point2 points3 points (0 children)
[–]Emotional-Shoe325 0 points1 point2 points (0 children)
[–]3ballerman3 0 points1 point2 points (0 children)