Upload
wolfflight
View
288
Download
2
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
AN INTRO TO PROGRAMMING
What Happened to Teaching This in School?
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.
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
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.
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
WHAT IS A PROGRAM?
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.
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
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
More Examples here:
Hello world different ways
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
DEMO TIME
Let’s Try Some Shall We??
http://www.learnpython.org/
A Beginner's Python Tutorial
Python for Beginners
Google’s Python Class Online
Learn On Your Own
Python.org Tutorial Even M.I.T. Helps You Learn
Ruby in 20 MinutesTry Ruby