1 Introduction and Basics php

26
Welcome

description

 

Transcript of 1 Introduction and Basics php

Page 1: 1 Introduction and Basics php

Welcome

Page 2: 1 Introduction and Basics php

MAKING THE MOSTOF THIS COURSE

Page 3: 1 Introduction and Basics php

no requiredprogramming experience

Page 4: 1 Introduction and Basics php

no requiredplatform

Page 5: 1 Introduction and Basics php

no requiredbackground

Page 6: 1 Introduction and Basics php

WHAT IS PROGRAMMING?

Page 7: 1 Introduction and Basics php

“A computer program is a

set of instructions…”

Page 8: 1 Introduction and Basics php
Page 9: 1 Introduction and Basics php

turn rightdrive one mileturn left on banktake the second rightfourth house on the

left

Page 10: 1 Introduction and Basics php

turn rightdrive one mile

Page 11: 1 Introduction and Basics php

200 + 300 = 500

X

Page 12: 1 Introduction and Basics php

STATEMENTS

BASIC LET Balance = 500

AppleScript set balance to 500

Java balance = 500;

COBOL MOVE 500 TO BALANCE

Page 13: 1 Introduction and Basics php

“programming is the ability to take this idea in your head, break it apart

into its individual pieces”

Page 14: 1 Introduction and Basics php

WHAT IS A PROGRAMMING LANGUAGE?

Page 15: 1 Introduction and Basics php
Page 16: 1 Introduction and Basics php

CC++

C#Java

JavaScriptPerlPHP

PythonObjective-C

RubyVisual basic

Page 17: 1 Introduction and Basics php

6A10040C5548EC00144C4800000000001400894800488D8900

01E90001E98D6500000000FA8300893D4D89000A1D6C00E5C2

0889480046E4FF126581G42G6B1B005GF2F2D3E88889000B0A

1B1A2B2A3CD3D45FFFDDAAB111BBCCC8C910202FF06A10040C

5548EC00144C4800000000001400894800488D890001E90001

E98D6500000000FA8300893D4D89000A1D6C00E5C208894800

46E4FF126581G42G6B1B005GF2F2D3E88889000B0A1B1A2B2A

3CD3D45FFFDDAAB111BBCCC8C910202FF0F3D5D08900A2A5B2

B500893D4D89000A1D6C00E5C20889480046E4FF5DD089E4B0

A1F33D3BBB50F0D0A1D1D3D45FFFDDAAB111BBCC0A1D6C00E5

C20889480046E4FF5DD089E4B0A1F33D3BBB50F0D0A1D1D3D4

5FFFDDAAB111BBCC

Page 18: 1 Introduction and Basics php

Machine codeCPU

Assembly Language

CLow-Level Languages

C++

Java, C#, VB.NET

Objective-C

Ruby, Python, PHP

JavaScript, ActionScript

High-Level Languages

Page 19: 1 Introduction and Basics php

WRITING SOURCE CODE

Page 20: 1 Introduction and Basics php
Page 21: 1 Introduction and Basics php

print(“Hello, World!”)Python 3 LuaALGOL 68ALGOL 68 / Python 3 /

Page 22: 1 Introduction and Basics php

ALGOL 60

BEGINDISPLAY (“Hello, Wolrd!”);

END.

Page 23: 1 Introduction and Basics php

C

#include <studio.h>

int main(void){

printf(“Hello, world\n”);return 0;

}

Page 24: 1 Introduction and Basics php

C#

using system;

class Example{

static void Main(string[] args){

Console.WriteLine(“Hello world!”);

}}

Page 25: 1 Introduction and Basics php

Java

public class HelloWorld{public static void main(string[] args){

System.out.println(“Hello, World!”);}

}

Page 26: 1 Introduction and Basics php

LANGUAGE EXAMPLES

Compiled C, C++, Objective-C

Interpreted PHP, JavaScript

Hybrid Java, C#, VB.NET, Python