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



Workbook

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



Homework


1A Earn the Cyber Chip

http://www.scouting.org/Training/YouthProtection/CyberChip/Grades6-8.aspx



Cyber Chip Requirements


  1. Read and sign the green card
  2. Write and sign a personalized contract with your parents
  3. Watch an online video
  4. Teach your patrol or troop
  5. 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



1. Khan Academy




2. Learnpython.org


http://www.learnpython.org/



3. Snap or Scratch







4. Boy's Life Resources


http://boyslife.org/merit-badges/programming-merit-badge/




5. Other languages


Use an online tool to share the program with me

https://repl.it/languages


Questions?


Programming - Day 1

Brady Isom

bradyisom@gmail.com

Made with Slides.com