Which language on the Raspberry Pi?

Image
What language should you use on the Raspberry Pi? There is quite a choice, including Python, Scratch, Java, C, Julia, and that's not counting the web stuff like Javascript, Html and Php.
There is no definitive answer - it depends on what you want to do. If you are teaching a child the basics of programming then Scratch might be a good choice. If you are an older learner then you might go for Python or Java with Greenfoot.
If you are interested in programming the Raspberry Pi hardware then there are libraries for pretty much any language that will let you do that. 
If you want a graphical user interface then you may want to give C a miss. But not necessarily because you can tack on a GUI in almost any language these days.
So where does that leave us?
Here is a list of some of the programming languages available for the Raspberry Pi with my brief personal notes and an example program for each one (except Scratch).

Scratch This is a graphical language designed to teach kids about p…

PIXEL on the PC again!

Apparently the folk at Raspberry Pi are surprised at the popularity of their operating system for the PC! And so, in the future, they are going to release an x86 version of Raspbian along with each release of the Pi version.


In fact, the future starts now because along with the new release of Raspbian for the Pi, they have now released an installable x86 version.


The first version, in December last year, would only run from a USB stick or a DVD. Now, they have provided an ISO file that can be installed on an x86 based machine in the same way as any other version of Debian Linux. They warn, however, this install will reformat your hard drive, so it's probably time to dust off that old laptop that has been lying at the bottom of the drawer for years and sacrifice it for the cause! (If you are lucky enough to have one, of course.)


The new release includes the same new features as the Pi version, an improved Scratch and the new Python IDE, Thonny.


I presume that like the previous one that, for licensing reasons, it does not include Minecraft or Mathematica. And of course, the Pi hardware is absent so you can't program the GPIO. The SenseHAT emulator is there, though.

I won't repeat the arguments for why I believe his is a good idea but, instead, refer you to my original post on the subject. But all in all,I think that this is a great development as it means that the same environment can be used both on the Pi and on a PC or, x86 based, Mac.

Advertisement


Comments

Popular posts from this blog

Just Enough Python

Learn to code with C

Introduction to Python by Andrew Ng