relindwto6
Posts: 1
Joined: Thu Jul 23, 2020 5:05 pm

Questions about programming on the Raspberry Pi [spam]

Thu Jul 23, 2020 5:26 pm

Hello everyone, i was wondering what would be the best programming language for the raspberry pi.

I am a software developer which works with C#, so I got that going for me.

I also already finished quite a big project with C# and Windows IOT on the Raspberry Pi but I wondered if there are better languages / possibilities out there.

My question, what is the favourite language on the Raspberry Pi?

What is the most beneficial language on the Pi because it can do the most (Fast, UI)?

I would like to do a little "homeautomation project" where I get myself a Pi with a 7" Touch Display.

So I would definetly need a possibility to create a nice UI (like UWP).

This is something I would like to programm on my own, even if there are some solutions out there.

Also I am thinking about doing this as a web service which then is displayed on the Raspberry Pi.

What would you recommend me to use as the programming language?

Thanks for your feedback and answers.
Last edited by relindwto6 on Sat Jul 25, 2020 11:31 pm, edited 1 time in total.

User avatar
hitsware
Posts: 268
Joined: Sat Mar 26, 2016 10:12 pm
Location: sacramento , california , usa
Contact: Website

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 6:09 pm

Call me old fashioned .
I like this one :
https://basic256.org/ ( available in repository )
BUT
The de rigueur seems to be Python
( which comes already installed )
http://www.hitswares.com/

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 6051
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 6:43 pm

hitsware wrote:
Thu Jul 23, 2020 6:09 pm
Call me old fashioned .
I like this one :
https://basic256.org/ ( available in repository )
BUT
The de rigueur seems to be Python
( which comes already installed )
Historically, "Python" is the "root" of Pi in "Raspberry Pi" and, AIUI, the "main" language used "educationally". Old (Ancient?) scientific programmer's like myself may prefer 'C' but Linux supports quite a few others. TBH, I suggest use the language(s) you're most comfortable with and which support any specific GPIO-related tasks you need. IDE's exist too (I'm not a "big fan" as I don't like "hidden" build/compilation/linkage actions and prefer the GNU autotools etc. - partially because, prior to my retirement, I contributed to and maintained a complex combined Fortran/'C' suite of programs)
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
jahboater
Posts: 6663
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 6:55 pm

FTrevorGowen wrote:
Thu Jul 23, 2020 6:43 pm
Historically, "Python" is the "root" of Pi in "Raspberry Pi" and, AIUI, the "main" language used "educationally".
Yes. Look at the number of posts in the "programming" part of this forum and you will see that Python is by far the most popular (or at least the most discussed) followed by C/C++.

The Raspberry Pi OS is Linux which is written in C, as are most of the surrounding tools. So C is the language that can best be described as "native" to the Pi, and C is also the fastest. If you need help on a C library function for example, the system manual pages will cover them all.

Python and C (and C++) are both pre-installed (that is, included within the OS) so they work out of the box.

Python and C have great access to the GPIO (much of the code that directly accesses the GPIO is written in C of course).
See this superb (included) library which has C and Python interfaces:-
http://abyz.me.uk/rpi/pigpio/

Having said that, there are many many languages available, so choose whichever you like most!

My personal choice is Python for interpreted and C for compiled.
Last edited by jahboater on Thu Jul 23, 2020 7:03 pm, edited 1 time in total.
Pi4 8GB (Raspberry Pi OS 64-bit), Pi4 4GB, Pi1 Rev 1 256MB, Pi Zero

User avatar
B.Goode
Posts: 11168
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 7:02 pm

relindwto6 wrote:
Thu Jul 23, 2020 5:26 pm
Hello everyone, i was wondering what would be the best programming language for the raspberry pi.

I am a software developer which works with C#, so I got that going for me.

I also already finished quite a big project with C# and Windows IOT on the Raspberry Pi but I wondered if there are better languages / possibilities out there.

My question, what is the favourite language on the Raspberry Pi?

What is the most beneficial language on the Pi because it can do the most (Fast, UI)?

I would like to do a little "homeautomation project" where I get myself a Pi with a 7" Touch Display.

So I would definetly need a possibility to create a nice UI (like UWP).

This is something I would like to programm on my own, even if there are some solutions out there.

Also I am thinking about doing this as a web service which then is displayed on the Raspberry Pi.

What would you recommend me to use as the programming language?

Thanks for your feedback and answers.


It's just a computer. A physically small, low power requirement, cheap to buy, computer.

It can be programmed using just about any computer programming language you have heard of. And probably also quite a few you haven't. The fact that you have managed to use c# is itself evidence of that.


A lot of people gravitate towards Python for ease of prototyping/development and range of pre-existing libraries. Including UIs. And web services..

But no recommendation from me. Use what works for you.


There have been many such discussions in the past. They are usually inconclusive.

User avatar
jahboater
Posts: 6663
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 7:12 pm

B.Goode wrote:
Thu Jul 23, 2020 7:02 pm
It's just a computer. A physically small, low power requirement, cheap to buy, computer.
It also runs Linux (the "official" OS called Raspberry Pi OS is based on Debian Linux).
Which means a wide range of high quality, and free, compilers and interpreters are either pre-installed or are mostly a simple "apt install" away.
Pi4 8GB (Raspberry Pi OS 64-bit), Pi4 4GB, Pi1 Rev 1 256MB, Pi Zero

User avatar
neilgl
Posts: 2662
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 8:37 pm

I would go with Perl

LTolledo
Posts: 4781
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 9:13 pm

for RPi programming I use python via IDLE (seems to take fewer resources than Mu)

for programming arduinos (and arduino compatible microcontrollers) using RPi, I use Arduino IDE....
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
jahboater
Posts: 6663
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Questions about programming on the Raspberry Pi

Thu Jul 23, 2020 10:05 pm

I believe that Thonny is the "official" RPT supported Python IDE.
(Included in Raspberry Pi OS)
Pi4 8GB (Raspberry Pi OS 64-bit), Pi4 4GB, Pi1 Rev 1 256MB, Pi Zero

knute
Posts: 663
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Questions about programming on the Raspberry Pi

Fri Jul 24, 2020 2:46 pm

If you are used to C# I would just use Java. But then I would use Java anyway :-).

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13661
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Questions about programming on the Raspberry Pi

Mon Jul 27, 2020 9:42 am

OP was a spammer, deleted several post edited in hidden spamlinks and retired the spammer

on request I will not delete this thread

Return to “Beginners”