o.paxton
Posts: 2
Joined: Mon Sep 05, 2016 6:49 pm

What is the best programming language to use?

Sat Oct 01, 2016 4:41 pm

Hi, my name is Odin, and I'm completely new to the pi, and I'm wondering what language I should use to work with it. Help would be awesome! :)

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: What is the best programming language to use?

Sat Oct 01, 2016 10:39 pm

The one you know, or the one you want to learn.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6228
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: What is the best programming language to use?

Sat Oct 01, 2016 10:47 pm

If there was a best language, then it would be the only one used by 80% of programmers. The best language to use depends on your specific project.

pi2r2
Posts: 8
Joined: Wed Jan 01, 2014 5:45 am

Re: What is the best programming language to use?

Sat Oct 01, 2016 11:45 pm

C is pretty awesome but not the easiest language to begin with.

Python is easy to learn, the documentation is great and there is plenty of example for the pi.

I personally always try to use Nodejs when possible because it makes it very easy to add a web interface.

ElEscalador
Posts: 839
Joined: Tue Dec 15, 2015 4:55 pm
Location: Detroit, MI USA
Contact: Website

Re: What is the best programming language to use?

Sun Oct 02, 2016 1:23 am

What's the best automobile? Sedan? SUV? Pickup truck? Work van?... You can probably make any of them work but some are better than other for various things.
Robotics tips, hacks, book extras https://youtube.com/practicalrobotics

User avatar
Gavinmc42
Posts: 4508
Joined: Wed Aug 28, 2013 3:31 am

Re: What is the best programming language to use?

Sun Oct 02, 2016 1:40 am

Learn all of them, it gets easier after the first half dozen ;)
But if you are going to use it on Pi's, start with Python.

There is no "best", if there was, no new languages would be invented every year.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

jahboater
Posts: 5680
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: What is the best programming language to use?

Sun Oct 02, 2016 5:33 pm

The good thing about Linux and the Pi is that you have a huge choice of available languages.
There is nothing stopping you from using any of them.

Most "real" software is written in C or Python.

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: What is the best programming language to use?

Sun Oct 02, 2016 6:23 pm

jahboater wrote: Most "real" software is written in C or Python.
Erm, Define "real".

@OP, As others have posted choose the language you are happier with. *nix has plenty of options.
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

jahboater
Posts: 5680
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: What is the best programming language to use?

Sun Oct 02, 2016 6:54 pm

Erm, Define "real".
By "real" I mean major software that users rely on day to day.
Of course there are exceptions (I did say "most").

I should probably include C++.

Take a look at Raspbian:-
The OS (linux kernel) is written in C.
The development software (GCC and the support tools) are written in C.
The office suites (Libre office) will be in C or C++
The GPIO support libraries are in C and/or Python.
Bash is written in C
I bet much of Python is written in C.
Most of the commands you type every day (cp, mv, rm, grep etc etc etc) are written in C.
The desktop will be in C++ or C.
Web browsers, databases, I don't know, but I would put money on C or C++ being involved somewhere.

Most scripts are in Bash or Python.

These languages tend to have the best support.
So if you chose to write a beginner program to light up a LED in Ada or prolog or scala or haskell you might find it difficult, but in Python or C it would be comparatively easy.

Take a look at the number of posts in the programming section of this forum to see which languages have the most user interest.

What do you call "real" software?

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: What is the best programming language to use?

Sun Oct 02, 2016 7:55 pm

jahboater wrote:The good thing about Linux and the Pi is that you have a huge choice of available languages.
There is nothing stopping you from using any of them.

Most "real" software is written in C or Python.
You should probably at least add ruby and rust to that list as well, and if you want to include languages used for webapps add in php, node, go and a few others.

For someone starting out Ruby or Python are probably the best options to start with. Lots of examples, fairly easy to create something functional etc.

User avatar
bensimmo
Posts: 4577
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: What is the best programming language to use?

Sun Oct 02, 2016 8:08 pm

o.paxton wrote:Hi, my name is Odin, and I'm completely new to the pi, and I'm wondering what language I should use to work with it. Help would be awesome! :)
I would go with Python if you are new to the Pi and don't know a lot about other languages. (?)
I say this since there is a lot of support from the RaspberryPI Foundation and people simplifying its use. Not least on this (RaspberryPI.org) website itself.
Then pick up something else if you cannot do it with Python or find, after getting into the Pi, something else fits your style better.

hooda
Posts: 2
Joined: Mon Oct 03, 2016 9:46 am

Re: What is the best programming language to use?

Mon Oct 03, 2016 9:53 am

You can start with any language you are comfortable with. Python, ruby, etc would be a good start. If you are starting off with programming then you can try https://hackr.io to find great programming courses and tutorials.
Just start with any language of your choice. All the best.

vale88
Posts: 6
Joined: Mon Sep 26, 2016 7:50 pm

Re: What is the best programming language to use?

Mon Oct 03, 2016 5:12 pm

topguy wrote:The one you know, or the one you want to learn.
This is a good suggestion. But if you want to learn my choice: Java and Python.

Valentin S.
Java developer
Interests: JavaFX, NetBeans and Raspberry Pi
Last edited by vale88 on Fri Nov 18, 2016 5:55 pm, edited 1 time in total.

hippy
Posts: 7459
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: What is the best programming language to use?

Mon Oct 03, 2016 5:27 pm

o.paxton wrote:Hi, my name is Odin, and I'm completely new to the pi, and I'm wondering what language I should use to work with it. Help would be awesome! :)
Python.

Or, if you know any other languages which you like using, then choose one of those. As long as it's not a particularly obscure or proprietary language it will probably be supported on a Pi.

o.paxton
Posts: 2
Joined: Mon Sep 05, 2016 6:49 pm

Re: What is the best programming language to use?

Tue Oct 04, 2016 4:07 am

jahboater wrote:
Erm, Define "real".
By "real" I mean major software that users rely on day to day.
Of course there are exceptions (I did say "most").

I should probably include C++.

Take a look at Raspbian:-
The OS (linux kernel) is written in C.
The development software (GCC and the support tools) are written in C.
The office suites (Libre office) will be in C or C++
The GPIO support libraries are in C and/or Python.
Bash is written in C
I bet much of Python is written in C.
Most of the commands you type every day (cp, mv, rm, grep etc etc etc) are written in C.
The desktop will be in C++ or C.
Web browsers, databases, I don't know, but I would put money on C or C++ being involved somewhere.

Most scripts are in Bash or Python.

These languages tend to have the best support.
So if you chose to write a beginner program to light up a LED in Ada or prolog or scala or haskell you might find it difficult, but in Python or C it would be comparatively easy.

Take a look at the number of posts in the programming section of this forum to see which languages have the most user interest.

What do you call "real" software?
thank you, this was very helpful. :D

Return to “Beginners”