what is programming?. the only language that computer actually understands is a binary code, like...

6
What is programming?

Upload: bernadette-horn

Post on 30-Dec-2015

219 views

Category:

Documents


1 download

TRANSCRIPT

What is programming?

The only language that computer actually understands is a binary code, like this:

010111101001001010010010010010010010100010010100001000101001000101001010110010110010101001001010010001010001010010100100010010010000101111011011101110111010010101101010010010110010101011110100100101001001001001001001010001001010000100010100100010100101011001011001010010010100100010100010100101001000100100100001011111010111011101110100101011010100100101100101010111101001001010010010010010010010100010010100001000101001000101001010110010110010001010010010100100010100010100101001000100100100001011111101110111011101001010110101001001100101010111101001001010010010010010010010100010010100001000101001000101001010110010110010101001001010010001010001010010100100010010010000101111110111011101110100101011010100101101011001010111101001001010010010010010010010100010010100001000101001000101001010110001101100101010010010100100010100010100101001000100100100001011111101110111011101001010110100100101100101010111101001001010010010010010010010100010010100001000101001000101001010110011101100101010010010100100010100010100101001000100100100001011111101110111011101001010110100100101100101010111101001001010010010010010010010100010010100001000101001000101001010110110110010101001001010010001010001010010100100010010010000101111110111011101110100101011010010111001011001010111101001001010010010010010010010100010010100001000101001000101001000101100101100101010010010100100010100010100101001000100100100001011111101110111011101001010110101001001011001

Do you speak English?

01010010011111010101?

Fastgraphics graphsize 1000,1000color white x=0 y=0 loop:color black: rect 0,0,graphwidth, graphheight gosub shooterif mouseb=1 then x=mousex: y=mouseycolor red: circle x,y,5y=y-10 refreshclggoto loop shooter:color bluerect mousex-50, mousey-5, 100, 10rect mousex-5, mousey-15, 10, 20return

PROGRAMMINGLANGUAGES

TRANSLATING SOFTWARE

0100110110110101001001

• Learning to program is a bit like learning a foreign languageThere are high-level languages (the ones that use more English-like

commands). Most popular of would be: C, C++, Java, PHP…There are low-level languages(used more for programming machines), like

AssemblerMost of the languages share A LOT in common. Once you’ve learnt one, it’s

quite easy to switch to another oneBasic 256 is a high-level language(very English-like) that has been

SPECIFICALLY DESIGNED to learn how to program

Why programming?

Programming facts

• A programming language is basically a language that allows a human being to communicate with a computer• The first computer programmer was a female, named Ada Lovelace• The first high-level (very close to real English that we use to

communicate) programming language was Fortran. invented in 1954 by IBM’s John Backus.• The first game was created in 1961• The first virus was created in 1983• Computer programming is one of the fastest growing occupations currently• Majors related to computer programming are among the highest paying in

colleges and universities• The lifestyle we live today with our tablets, and mobile phones wouldn’t be

possible without computer programming

Open the Basic256 application

This is where you write a series of commandscalled a “program”

This is where your program displays text(can be extended)

This is where your program displays graphics(can be extended to fullscreen)