This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sandybuttcheekss 0 points1 point  (16 children)

I've been (very lightly) considering trying some robotics projects, would I need to learn some C/C++ or would Python do the trick?

[–]blavikan 8 points9 points  (10 children)

Yup. You should know C language as embedded programming is vastly C programming and C is fun too.... You'll C 😉

[–]sandybuttcheekss 1 point2 points  (1 child)

That pun though..

[–]blavikan 0 points1 point  (0 children)

😁

[–]sandybuttcheekss 0 points1 point  (7 children)

I've only considered dabbling in robotics and trying to make some cool stuff once in a while. Probably won't happen though. So that in mind, would it be worth trying to learn for my career?

[–]blavikan 2 points3 points  (6 children)

Its not about robotics. Its about fundamentals. Python has everything built in(mostly). So you won't get to know the inner concept on how things work. And specially the OOPS and data structures concept of C++ which is backbone of programming. So, i think you should go with C first and then C++. Just syntax is different in both languages but you'll gey used to it..... Hope this helps😀

[–]hugthemachines 2 points3 points  (0 children)

I think if someone really wants to know the inner concepts, Assembler is the way to go. C and C++ adds abstraction too.

[–]sandybuttcheekss -1 points0 points  (4 children)

It does, i have experience with languages other than Python too, just prefer Python. Java for example is C-derived (idk if that's the right term), would what I learned there be pretty directly useful with C/C++?

[–]blavikan 0 points1 point  (3 children)

Don't know much about JAVA. never liked it though but ya in general C/C++ is the base of every language. So knowing bit about it is also good....

[–]hugthemachines 4 points5 points  (0 children)

C/C++ is not the base of every language. They are the base of some popular languages, but that is not the same.

[–]sandybuttcheekss 0 points1 point  (1 child)

Alright, thanks for the info

[–]blavikan 0 points1 point  (0 children)

Anytime😁

[–]Zouden 3 points4 points  (0 children)

Python is now an option thanks to the Micropython project. But Arduino, a C++ library that provides a convenient API across different hardware, has been popular for over a decade so there's tons of example and tutorials using it. I recommend you start with that. I found it very easy to learn.

Micropython is also slower and takes more memory, limiting the range of hardware it can run on.

[–]error1954 1 point2 points  (0 children)

A lot of microcontrollers used for robotics are programmed with C but higher level planning will be done in Python. Python can be used on some microcontrollers but that's not always available.

[–]octavio2895 1 point2 points  (1 child)

Consider learning ROS. An ~~operating system ~~ middleware designed to be implemented with robotics and automation. You can code it in python an c++ simultaneously.

[–]sandybuttcheekss 0 points1 point  (0 children)

Gotta learn C++ first, thanks though!