14
AN INTRO TO PROGRAMMING What Happened to Teaching This in School?

An intro to programming

Embed Size (px)

DESCRIPTION

Simple presentation for an Introductory Session for local area youth and other interested individuals who might want to learn more of what is not currently being taught in schools anymore.

Citation preview

Page 1: An intro to programming

AN INTRO TO PROGRAMMING

What Happened to Teaching This in School?

Page 2: An intro to programming

W H O A M I ?

James L. Siegel Jr.AAS Information Technology, Network AdministrationLPIC-1, Novell CLA, Linux+, A+, Net+, Security+Linux Systems Administrator, MIE Inc.Presenter at BsidesCleveland (‘12)– Breaking Out of the Echo ChamberSpeaker at DerbyCon StableTalks (‘12) – Nice to Meet You Programming since late 1970s -----

Basic, COBOL, Pascal, C, C++, Batch scripting in DOS, BASH scripting in Linux, and now Python, Ruby, and some Perl.

Page 3: An intro to programming

TODAY IN A NUTSHELL

Examine what is a computer

What makes them work?

Imagination defines the limits of potential

What is a program?

You can do it too

Demonstration

Suggestions

Page 4: An intro to programming

WHAT IS A COMPUTER?

A device that computes, especially a programmable electronic machine that performs high-speed mathematical or logical operations or that assembles, stores, correlates, or otherwise processes information.

Page 5: An intro to programming

WHAT MAKES THEM WORK?

The nuts and bolts of it from the last slide?A bunch of electronics that respond

to programmable instructions.

I guess, that must mean…

PROGRAMMERS

Page 6: An intro to programming
Page 7: An intro to programming

WHAT IS A PROGRAM?

Page 8: An intro to programming

How about this?A program is a set of ordered instructions for a computer to perform?

Still too wordy? Unclear, ok… let’s talk about it.

Page 9: An intro to programming

WHAT SOME OF IT LOOKS LIKE

#include <stdio.h> int main(void) { printf("Hello world!"); return 0; }

#include <stdio.h> int main(void){ printf("Hello world!"); return 0;}

#include <iostream> int main(){ std::cout << "Hello World!";}

public class HelloWorld { public static void main() { System.out.println("Hello world!"); }}

C C++

JAVA

Page 10: An intro to programming

What if I told you, that it can be done even simpler than that???print "Hello World"

puts "Hello world!"

That’s Python

That was Ruby

Page 11: An intro to programming

More Examples here:

Hello world different ways

Page 12: An intro to programming

PHASES OF DEVELOPMENT

Define task/problem = Scope

Plan the Solution:Find suitable

algorithmFind data

structures

= Design

Write the Code = Implementation

Fix errors (bugs) = Testing and Debugging

Pseudocoding should be done here

Page 13: An intro to programming

DEMO TIME

Let’s Try Some Shall We??