25
Essam Ahmed Hassan

SCCI'14 - Appsplash [2] Code!

  • View
    203

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: SCCI'14 - Appsplash [2] Code!

Essam Ahmed Hassan

Page 2: SCCI'14 - Appsplash [2] Code!

Intro to Coding

Page 3: SCCI'14 - Appsplash [2] Code!

Why learn how to code?

Page 4: SCCI'14 - Appsplash [2] Code!
Page 5: SCCI'14 - Appsplash [2] Code!

Why learn how to code?

Page 6: SCCI'14 - Appsplash [2] Code!
Page 7: SCCI'14 - Appsplash [2] Code!
Page 8: SCCI'14 - Appsplash [2] Code!
Page 9: SCCI'14 - Appsplash [2] Code!

Crystal Clear?

Page 10: SCCI'14 - Appsplash [2] Code!

So, Let’s learn some CODE!

• What’s a programming language?

• Programming languages Components

• How it works!

Page 11: SCCI'14 - Appsplash [2] Code!

A Programming Language is ..

A language that connects people and computers

Page 12: SCCI'14 - Appsplash [2] Code!

Programming languages Components Variables bool int float double char

True/False

20 1.2 1.2467965 ‘c’

Flow Control

Page 13: SCCI'14 - Appsplash [2] Code!
Page 14: SCCI'14 - Appsplash [2] Code!

Programming languages Components

Loops

Few more amazing stuff we will be dealing with later..

Page 15: SCCI'14 - Appsplash [2] Code!

Crystal Clear?

Page 16: SCCI'14 - Appsplash [2] Code!

How it works!

• You Write..

• You press “RUN”

• Your code is translated into 0s and 1s

• Magic!

Page 17: SCCI'14 - Appsplash [2] Code!

Tips for The geeks!

• 75% of coding is Googling.

• Programming Languages are a lot, and you only need to know a tiny bit of it.

• You will spend 90% of your time on paper rather than your computer

Page 18: SCCI'14 - Appsplash [2] Code!

Crystal Clear?

Page 19: SCCI'14 - Appsplash [2] Code!

Let’s Learn Some JavaScript!

Variablesvar Name=“Khalid”;

var ID=1250;

var weight=15.5;

var isOdd= true;

Note: we use “;” after every statement.

Page 20: SCCI'14 - Appsplash [2] Code!

Let’s Learn Some JavaScript!

Printingconsole.log(“Khalid”);

//Ignored by the program

Note: we use “;” after every statement.

Comment Line

Page 21: SCCI'14 - Appsplash [2] Code!

Let’s Learn Some JavaScript!

Flow Controlif (/* Some condition */) { // Do something } else if (/* Some other condition */) { // Do something else } else { // Otherwise // Do a third thing }

Page 22: SCCI'14 - Appsplash [2] Code!

Let’s Learn Some JavaScript!

Loops

for(var i = 0; i < condition; i++){ //Do something! }

do {//Do something} while(Condition);

while(condition){//Do something}

Page 23: SCCI'14 - Appsplash [2] Code!

Functions?

Let’s Learn Some JavaScript!

Page 24: SCCI'14 - Appsplash [2] Code!

RECAPRECAP

RECAP

RECAP

RECAP

RECAP

RECAP

RECAP

RECAP

Page 25: SCCI'14 - Appsplash [2] Code!

THANKS!

terimakashiGrazie

Gracias

KamsaObrigadoMerci