In this section, we discuss what C is, how it came to be, and how it compares to the other common programming languages Arduino and Python.

Transcript

C is a system programming language that was created in the late 60s, early 70s by a man named Dennis Ritchie, when he and his team at Bell Labs were creating Unix the predecessor for basically every operating system for the last thirty years, except for the ones by Microsoft. He created C because he needed a way to solve the problems he was having that the high-level languages at the time couldn't solve and the only way to do it was to use machines specific and very hard to read assembly code. C is what's known as a procedural language which means, you start at the top and you work your way down like you would a recipe and just as in a recipe you can have an instruction to say "go to this page" create for instance the source and come back and work from where you were. You may have heard of the Arduino language and that's actually built on top of C and C++, it does some things for you, to make it easy for the maker to get right down into their project but, in doing so it removes some of the features that are really deep down inside C. If you want to get these features back, however you can include C code inside your Arduino project. The downside of using Arduino though is that it only works with Arduino compatible devices, so if you're trying to program any other microcontroller chances are you'll have to use C. Python on the other hand which is what's commonly used on the Raspberry Pi, is what's known as an interpreted language so instead of being compiled into binary at the very beginning, it's compiled line by line as the program runs this means that you need to have an interpreter running at the same time as your program which takes up valuable space and CPU cycles on an embedded platform. The upside to using Python though is that it's very easy to read and write as it's very close to human languages. So, if you have a look at the tutorial on the website I've listed all the programming languages that I've talked about during this video and you can see how they compare, for instance, machine code is just numbers whereas, assembly is very hard to read all the way up to,Python which is very simple.

Comments


Loading...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.