programming part 2 git and github - 1010robotics.github.io · scenario 1 you you ––––at...

23
Madagascar Penguins

Upload: votu

Post on 21-Jun-2019

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Madagascar Penguins

Page 2: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

PROGRAMMING:BEST PRACTICESPart 2 – Introduction to GitGitGitGit & GitHubGitHubGitHubGitHub

Page 3: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Backward PlanningBackward PlanningBackward PlanningBackward Planning

Two ProgrammersTwo ProgrammersTwo ProgrammersTwo Programmers

Backup Your CodeBackup Your CodeBackup Your CodeBackup Your Code

(Version Control)(Version Control)(Version Control)(Version Control)

Wiring DiagramWiring DiagramWiring DiagramWiring Diagram

Page 4: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Two (or more) ProgrammersTwo (or more) ProgrammersTwo (or more) ProgrammersTwo (or more) ProgrammersBackup Your Code Backup Your Code Backup Your Code Backup Your Code –––– GitGitGitGit & GitHub& GitHub& GitHub& GitHub

Page 5: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 1

YOU YOU YOU YOU –––– at schoolat schoolat schoolat school Your COMPUTER Your COMPUTER Your COMPUTER Your COMPUTER –––– at home at home at home at home

Page 6: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 2

All your files are

gone to never-

never-land.

FATAL FATAL FATAL FATAL

ERROR ! ! ! ERROR ! ! ! ERROR ! ! ! ERROR ! ! !

Your computer

crashes……

Page 7: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 3

…have a …have a …have a …have a

workingworkingworkingworking

programprogramprogramprogram

YOU…YOU…YOU…YOU…

YOURYOURYOURYOUR

FRIENDFRIENDFRIENDFRIEND

In classIn classIn classIn class

…Or at home…Or at home…Or at home…Or at home

Page 8: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 4

Code forCode forCode forCode for

Ultrasonic SensorUltrasonic SensorUltrasonic SensorUltrasonic Sensor

Code forCode forCode forCode for

PotentiometerPotentiometerPotentiometerPotentiometer

Page 9: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 5

Comes to Comes to Comes to Comes to

Robotics Academy Robotics Academy Robotics Academy Robotics Academy

on Day 1on Day 1on Day 1on Day 1

Comes to Comes to Comes to Comes to

Robotics Academy Robotics Academy Robotics Academy Robotics Academy

on Day 2on Day 2on Day 2on Day 2

Page 10: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Software (“in the cloud”) that allows you to:

1.Keep track of the history of your files, and any changes

you make

2. Collaborate & work in teams to write code

Page 11: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

Page 12: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Scenario 2

All your files are

gone to never-

never-land.

FATAL FATAL FATAL FATAL

ERROR ! ! ! ERROR ! ! ! ERROR ! ! ! ERROR ! ! !

Your computer

crashes……

Page 13: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

Page 14: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

Page 15: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

F I S HF I S HF I S HF I S H C H I P SC H I P SC H I P SC H I P S

Page 16: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

Page 17: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why Git?

Page 18: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Command Line Interface (C L I)Command Line Interface (C L I)Command Line Interface (C L I)Command Line Interface (C L I) Graphical User Interface (G U I)Graphical User Interface (G U I)Graphical User Interface (G U I)Graphical User Interface (G U I)

Page 19: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why GitHub?

• If coming back to Robotics Academy Robotics Academy Robotics Academy Robotics Academy next year – we will be using GitHub

• If going to UniversityUniversityUniversityUniversity – some of your professors may be using GitHub

• Its catching on – some of your Secondary School teachersSecondary School teachersSecondary School teachersSecondary School teachers may use

GitHub next year

• When you go to work – your EmployerEmployerEmployerEmployer may be using GitHub

Page 20: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Showcase Showcase Showcase Showcase YOURYOURYOURYOUR portfolio on portfolio on portfolio on portfolio on YOURYOURYOURYOUR web site….web site….web site….web site….

Why GitHub?

What else can we use GitHub for?

What would you like to see on the 1010Robotics website?

What can you contribute?

Page 21: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

Why GitHub?

Page 22: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

1. Go to www.GitHub.com

Your mission…….

2. Create your account usernamepasswordphoto

3. Choose free student account

4. Go to https://1010Robotics.GitHub.io

5. Select a link, and click on View on GitHubView on GitHubView on GitHubView on GitHub

6. Submit an IssueIssueIssueIssue

Page 23: Programming Part 2 Git and GitHub - 1010robotics.github.io · Scenario 1 YOU YOU ––––at schoolat school Your COMPUTER Your COMPUTER ––––at home at home

In Conclusion…