ketanco
Posts: 2
Joined: Mon May 08, 2017 8:37 am

What languages are used to program raspberry PI?

Mon May 08, 2017 8:42 am

Hello,
I am a beginner.
What languages are used to program raspberry PI?
and where on what platform?
what do we install where and then in what computer language we write?
as i said i am complete beginner and have no idea. please do not direct me to a 1 million page reference. I only need your 5 sentence answer that is all.

scotty101
Posts: 3253
Joined: Fri Jun 08, 2012 6:03 pm

Re: programming

Mon May 08, 2017 8:53 am

If you download the standard Raspbian installation, you will have all the tools needed to program with;
Python, C/C++, Java, Scratch (and more that I can't think of). You also have access to the online repositories to add support for almost any other programming language that exists.
You can program directly on the raspberry pi (it is a perfectly capable computer for small development tasks) or you can code on your regular laptop and move the code on to your pi.
The very website you are on now has a lot of beginner tutorials for various languages.
There is also the MagPi magazine which has some how-to articles.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20929
Joined: Sat Jul 30, 2011 7:41 pm

Re: programming

Mon May 08, 2017 8:56 am

Almost any language supported by Linux can be used (and that is most of them).

By default, C, C++, Python and a few others are installed IIRC, but it is very easy to install more.

You would do well to start with Python. A Google search will find may tutorials.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

ketanco
Posts: 2
Joined: Mon May 08, 2017 8:37 am

Re: programming

Mon May 08, 2017 2:05 pm

ok so I would install raspbian OS to my laptop and run that OS, and with that use a programming language like Phyton or C to start programming? is that correct? when I run raspbian OS, does it mean my laptop will be running on that OS instead of windows, or it is just like a program running on my computer?
and what is IIRC?

DirkS
Posts: 9505
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: programming

Mon May 08, 2017 2:13 pm

ketanco wrote:ok so I would install raspbian OS to my laptop and run that OS, and with that use a programming language like Phyton or C to start programming? is that correct?
No, you install Raspbian OS on your Pi.
Then you can program on the Pi, either using a keyboard + screen or remotely (using e.g. SSH or VNC)
and what is IIRC?
If I Remember Correctly

User avatar
PeterO
Posts: 4296
Joined: Sun Jul 22, 2012 4:14 pm

Re: programming

Mon May 08, 2017 2:19 pm

ketanco wrote:Hello,
I am a beginner.
What languages are used to program raspberry PI?
and where on what platform?
what do we install where and then in what computer language we write?
as i said i am complete beginner and have no idea. please do not direct me to a 1 million page reference. I only need your 5 sentence answer that is all.
Start here --> https://www.raspberrypi.org/help/

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

W. H. Heydt
Posts: 9230
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: programming

Mon May 08, 2017 3:51 pm

I think the OP is a tiny bit confused about what the Pi actually *is*.

The model of developing a program on one system and then transferring it to another is typically used by microcontrollers, e.g. Arduino. The Pi is a full computer that runs a full featured OS in its own right. You work within the OS to develop programs and run them in the Pi, just as you would any general purpose computer, ranging from a microcomputer like a PC or Mac up through minicomuters (e.g. DEC VAX), mainframes (e.g. IBM S/370 or z900) to supercomputers.

As already noted, you can program in pretty much any language you've ever heard of and probably quite a few you haven't. Raspbian comes with C, C++, Python, and Scratch already installed. If you can give us some background on how much programming you are already familiar with, we may be able to give you some pointers on where to go next.

scotty101
Posts: 3253
Joined: Fri Jun 08, 2012 6:03 pm

Re: programming

Mon May 08, 2017 4:22 pm

ketanco wrote: Phyton
Python, like the snake.
(This seems to be an incredibly common mis-spelling)
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
r3d4
Posts: 949
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: programming

Mon May 08, 2017 4:50 pm

PeterO wrote: Start here --> https://www.raspberrypi.org/help/

PeterO
Perhaps you mean hear --> https://www.raspberrypi.org/resources/ ( link from "Raspberry Pi Software Guide":raspberrypi.org/learning/software-guide )

or
https://www.raspberrypi.org/learning/demo-programs/
and
https://www.raspberrypi.org/learning/python-intro/


# 5 lines! if you dont count white space && comments :ugeek:
# no offence && no sentence's sorrynotsorry xD

jahboater
Posts: 3274
Joined: Wed Feb 04, 2015 6:38 pm

Re: programming

Mon May 08, 2017 7:51 pm

ketanco wrote:ok so I would install raspbian OS to my laptop and run that OS, and with that use a programming language like Phyton or C to start programming? is that correct?
You install Raspbian on the Raspberry Pi, not on your laptop (though technically you could do that as well).
ketanco wrote:when I run raspbian OS, does it mean my laptop will be running on that OS instead of windows,
No, Raspbian runs on the Pi. There is absolutely no need to touch anything on your laptop.

Raspbian is an alternative to Windows - they are both an "OS" (an Operating System). Most people choose to run Raspbian on the Pi.

Raspbian is a form of Linux. One advantage of that is that its free! Another is that it has great support for programming built in. As people have said, it comes with several important and extremely widely used programming languages already included. No need to install anything - just start programming!

Return to “Beginners”