10
Computer Programming By: Chandler Riehm

Core 21 Programming

Embed Size (px)

Citation preview

Page 1: Core 21 Programming

Computer Programming

By: Chandler Riehm

Page 2: Core 21 Programming

What is coding?

Why is it important for the future?

Page 3: Core 21 Programming

So, what is coding?

Coding is NOT, what some people think is ‘hacking’

Programming

Hacking

Page 4: Core 21 Programming

The ‘Real’ Meaning of Coding

According to dictionary.com:

The process of writing computer software code.

According to google.com:

The process of assigning a code to something for the purposes of classification or identification.

Page 5: Core 21 Programming

An Example of a Programming Language: Java (not JavaScript)

.java file (file containing source

code)

Compiled into…

.class file (can no longer be read)

Sub-Class Sub-Class

Sub-Class Sub-Class

A .java file has to be compiled to be useful. Just a java file is useless.

A java file is compiled into a class file. This can be classified as many different things such as a sub-class.

Sub-classes go into a main class that governs every thing. A main class has to have the special method, main().

Page 6: Core 21 Programming

.java file (file containing source

code)

Line of code

Method(){}

Method(){}

Method(){}

VAR

Argument

Argument

Argument

Argument

Argument

Fors, Whiles, Ifs, etc.

Fors, Whiles, Ifs, etc.

Fors, Whiles, Ifs, etc.

VAR

VAR

VAR

VAR

VAR

VAR

Line of code

Line of code

Line of code

Line of code

Line of code

Line of code

Line of code

Line of code

Line of code

Page 7: Core 21 Programming

Other Things That Are Important in Java

Packages

Java Packages are folders, but they have different properties

Jar Archives

Jar archives contain all classes, images, and other things that the java program needs to run

Jars, unlike classes, are executable, meaning you can run them

Page 8: Core 21 Programming

Why is it important for the future?

What is coding?

Page 9: Core 21 Programming

Why??

Page 10: Core 21 Programming

Coding is not a nerd thing, it is a smart thing.

Video