Slide 1

Slide 1 text

Building CS50 on GitHub David J. Malan [email protected] slides at cs50.ly/universe17

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

This is CS50 ● CS50 ○ 800 students at Harvard, 200 students at Yale ● CS50x ○ 1M registrants online ● CS50 AP ○ 150 high schools, 5,000 students

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Problems Past ● Developing apps ● Deploying apps ● Hosting docs ● ...

Slide 6

Slide 6 text

Problems Present 1. Students do work. 2. Students submit work. 3. Teaching fellows review work.

Slide 7

Slide 7 text

Team ● Brian Yu ● Chad Sharp ● Hailey James ● Kareem Zidane

Slide 8

Slide 8 text

Team ● Brian Yu ● Chad Sharp ● Hailey James ● Kareem Zidane

Slide 9

Slide 9 text

Solutions 1. Students do work. 2. Students submit work. 3. Teaching fellows review work.

Slide 10

Slide 10 text

Solutions 1. Students do work. Homegrown tool. 2. Students submit work. 3. Teaching fellows review work.

Slide 11

Slide 11 text

Solutions 1. Students do work. Homegrown tool. 2. Students submit work. Homegrown tool. 3. Teaching fellows review work.

Slide 12

Slide 12 text

Solutions 1. Students do work. Homegrown tool. 2. Students submit work. Homegrown tool. 3. Teaching fellows review work. Homegrown tool.

Slide 13

Slide 13 text

Solutions

Slide 14

Slide 14 text

Solutions 1. Homegrown tool

Slide 15

Slide 15 text

Solutions 1. Homegrown tool 2. Improved homegrown tool

Slide 16

Slide 16 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool

Slide 17

Slide 17 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool 4. New-and-improved homegrown tool

Slide 18

Slide 18 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool 4. New-and-improved homegrown tool 5. GitHub

Slide 19

Slide 19 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool 4. New-and-improved homegrown tool 5. GitHub + homegrown tool

Slide 20

Slide 20 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool 4. New-and-improved homegrown tool 5. GitHub + homegrown tool

Slide 21

Slide 21 text

Solutions 1. Homegrown tool 2. Improved homegrown tool 3. New homegrown tool 4. New-and-improved homegrown tool 5. GitHub + Docker

Slide 22

Slide 22 text

Doing Work 1. ice.harvard.edu

Slide 23

Slide 23 text

Doing Work 1. ice.harvard.edu 2. nice.harvard.edu

Slide 24

Slide 24 text

Doing Work 1. ice.harvard.edu 2. nice.harvard.edu 3. cloud.cs50.net

Slide 25

Slide 25 text

Doing Work 1. ice.harvard.edu 2. nice.harvard.edu 3. cloud.cs50.net 4. CS50 Appliance

Slide 26

Slide 26 text

Doing Work 1. ice.harvard.edu 2. nice.harvard.edu 3. cloud.cs50.net 4. CS50 Appliance 5. CS50 IDE

Slide 27

Slide 27 text

Submitting Work

Slide 28

Slide 28 text

Submitting Work 1. submit

Slide 29

Slide 29 text

Submitting Work 1. submit 2. cs50submit

Slide 30

Slide 30 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI

Slide 31

Slide 31 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI 4. CS50 Submit with CLI

Slide 32

Slide 32 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI 4. CS50 Submit with CLI 5. CS50 Submit with GUI

Slide 33

Slide 33 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI 4. CS50 Submit with CLI 5. CS50 Submit with GUI 6. submit50

Slide 34

Slide 34 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI 4. CS50 Submit with CLI 5. CS50 Submit with GUI 6. GitHub

Slide 35

Slide 35 text

Submitting Work 1. submit 2. cs50submit 3. GitHub:FI 4. CS50 Submit with CLI 5. CS50 Submit with GUI 6. GitHub 7. GitHub + Docker

Slide 36

Slide 36 text

Reviewing Work

Slide 37

Slide 37 text

Reviewing Work 1. Paper

Slide 38

Slide 38 text

Reviewing Work 1. Paper 2. PDF

Slide 39

Slide 39 text

Reviewing Work 1. Paper 2. PDF 3. CS50 Submit

Slide 40

Slide 40 text

Reviewing Work

Slide 41

Slide 41 text

Reviewing Work 1. Paper 2. PDF 3. CS50 Submit 4. GitHub.com

Slide 42

Slide 42 text

Reviewing Work 1. Paper 2. PDF 3. CS50 Submit 4. GitHub.com 5. GitHub.com + homegrown tool 0:-)

Slide 43

Slide 43 text

Why ● Client ● Server ● UI for code review ● Permissions model ○ CS50 ○ CS50x ○ CS50 AP ● Post-commit hooks ● ...

Slide 44

Slide 44 text

How ● Gists? ● Pull Requests? ● GitHub Classroom? ● Commits?

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

What ● Client ● Server ● UI for code review ● Permissions model ○ CS50 ○ CS50x ○ CS50 AP ● Post-commit hooks ● ...

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

education.github.com

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

How ● Repo per project? ● Branch per project?

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

github.com/cs50/submit50

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

Submitting ● git add --all ● git commit --allow-empty --message ● git push origin refs/heads/hello

Slide 65

Slide 65 text

Resubmitting ● git clone --bare hello /tmp ● git symbolic-ref HEAD refs/heads/hello ● git add --all ● git commit --allow-empty --message ● git push origin refs/heads/hello

Slide 66

Slide 66 text

developer.github.com/v3/repos/

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

Tagging ● git clone ● git checkout refs/heads/hello ● git commit-tree HEAD^{tree} -m 20171011T230000Z ● git push origin refs/tags/20171011T230000Z

Slide 78

Slide 78 text

github.com/cs50/check50

Slide 79

Slide 79 text

Autograding ● git clone ● git checkout refs/tags/20171011T230000Z ● check50

Slide 80

Slide 80 text

hub.docker.com/r/cs50/

Slide 81

Slide 81 text

docker.com

Slide 82

Slide 82 text

docker.com

Slide 83

Slide 83 text

aws.amazon.com/ecs/

Slide 84

Slide 84 text

GitHub + Docker 1. Student pushes code to GitHub 2. Post-receive hook informs CS50 of submission 3. CS50 informs ECS of submission 4. ECS clones repo, autogrades branch 5. ECS informs CS50 of scores

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

tl;dr ● CS50 at cs50.edx.org ● CS50 IDE at cs50.io ● submit50 at github.com/cs50/submit50 ● check50 at github.com/cs50/check50 ● Slides at cs50.ly/universe17

Slide 89

Slide 89 text

Building CS50 on GitHub David J. Malan [email protected] slides at cs50.ly/universe17