Minicomputers to aid learning, housekeeping, and life.
In 2011, the Raspberry Pi single-board computer was released for those who got tired of looking for ready-made solutions and decided to create a technological environment themselves. While the Arduino is more of a toy for hobbyists, the “Raspberry” product is a brain workout for programmers.
In just 6 years, almost all popular programming languages have been adapted to Raspberry Pi. Some of them have significant limitations, while others work at full throttle. Let’s look at 9 representatives of the second category.
The official website suggests that Raspberry users first turn to Scratch. The sources of the language are already included in the standard Raspbian operating system. The IoT creation with Scratch can be started by an adult or by a child. It is not without reason that in just 10 years it has made it into the top 20 languages by the number of searches in search engines.
It may come as a surprise to you, but the Pi in the name is not a mathematical constant, but a reference to Python. IDLE, the standard software development environment on the Raspberry, runs exactly in Python. You’ll find a basic tutorial on the official site in the documentation section. In addition, thanks to the Python Games and their source code, you will become familiar with the possibilities of the language.
HTML5 and CSS3
The Raspberry Pi computers are suitable for building IoT systems, and the built-in Epiphany browser is a suitable client interface. This means that you can’t do without web languages. HTML5 and CSS3 allow you to solve the question of creating a virtual shell for a smart home with minimal time and few limitations.
The ability to run Java code on any platform is the main concept of the language. And this concept is especially useful for platforms like the Raspberry Pi. You will first debug the code on the “big” OS, and then port it to Raspbian. At the same time, it is difficult to develop Java applications inside the “Raspberry” system – there is no full-fledged environment for this language here.
As Raspbian is a Unix-based OS, the base language here is C. With it, you get maximum performance without the use of machine commands. This is especially important for server systems in the IoT. A superset of the language, Objective-C, is used to write applications for the iPhone and iPad, which can also come in handy with Raspbian.
C++ comes in handy wherever speed, security, and clarity are needed. The range of tasks is incredibly wide – from working directly with hardware to organizing the interaction of devices and clients. C++ will change experienced developers from the last century and those who previously wrote code only for microcontrollers to “raspberry” side.
Perl is slowly losing its position in the world of big machines, but on the Raspberry Pi it is still one of the main tools. It comes “out of the box”, has many extensions and add-ons, you can use it to organize information gathering or rewrite a C program. It will be a speed bump, but it’s a lot easier to work with.
Erlang is a programming language for building complex systems. Let’s say you are developing a nuclear power plant or a neural network on your single board friend Raspberry Pi. C++ or any other application language won’t do. But Erlang will let you minimize bugs and get the most out of your Raspberry Pi. That is, of course, if you grow to that level.
As you have already understood, the programming language for the Raspberry Pi makes a huge difference. The choice depends on your tastes, the type of problem you want to solve, and your experience. This means that the Raspberry Pi will be your faithful companion in programming, whichever way you choose.