Programming - Day 1
Brady Isom
bradyisom@gmail.com
Schedule
Day 1 (Today)
Requirements 2, 3 & 4
Homework
Requirements 1a, 5a, 5b & 5c
Day 2 (in 3 weeks)
Requirements 1b, 5d & 6
Showcase Homework
Slides
Pencils Ready?
Requirement 2a
A brief history of programming
Discussion
- Brief history of programming, including 3 milestones in advancement of programming
- Evolution of programming methods and how they have improved over time
Requirement 3a
Programming languages
"Computers is so duuumb!"
They do EXACTLY what you tell them to do
What is a program?
A program is a special kind of file that the computer, or operating system, knows how to run.
Because computers only know about 1's and 0's, we need a way to translate something that we can understand into the computer's "language".
A programming language gets translated, or compiled, into binary.
saveFile('MyFile.jpg') -> 0001110101010011010
Just like there are a lot of spoken languages, there are many programming languages.
Example - JavaScript
Used primarily for programming websites.
Makes the website do things, like this presentation.
function say(message) {
alert('Hello' + message + '!');
}
say('World');
// Result: 'Hello World!'
Requirement 3b
Programmed Devices
You use them everyday
Whaaaat!?
Describe 3 different programmed devices you use every day
Cell Phone
Car
Thermostat
Requirement 4
Intelectual Property
What is a Patent or a Copyright?
Patents and copyrights help programmers
Software is easy to copy (it's just 1's and 0's)
Difference between Owning and Licensing Software?
Owning = Full rights, do what you want
Licensing = Permission from owner to use
Types of Licenses
Freeware License
No cost, free software to use as you please
Open Source License
Multiple types of licenses
Allows access to see the source code
Usually has restrictions on use and redistribution
Commercial License
Pay for use of software
Most have restrictions on copying,
numbers of users or numbers machines
numbers of users or numbers machines
Homework
1A Earn the Cyber Chip
Cyber Chip Requirements
-
Read and sign the green card
-
Write and sign a personalized contract with your parents
-
Watch an online video
-
Teach your patrol or troop
-
Discuss with your unit leader about electronic device policies
5A-C Write, Debug and Demonstrate Three Programs
Three different languages and environments
Requirements
-
Find a sample program
-
Modify or add to the program
-
Debug the program
-
Send the program to me (bradyisom@gmail.com)
-
Demonstrate it to us next time
2. Learnpython.org
4. Boy's Life Resources
5. Other languages
Use an online tool to share the program with me
Questions?
Programming - Day 1
Brady Isom
bradyisom@gmail.com
Programming MB - Day 1
By bradyisom
Programming MB - Day 1
- 653