-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
260 lines (256 loc) · 8.47 KB
/
index.html
File metadata and controls
260 lines (256 loc) · 8.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ScriptEd Development Tools Lesson</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/scripted.css" id="theme">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>Do Now: Log Into Cloud9</h2>
<ul>
<li>Go to <a href="https://c9.io">https://c9.io</a></li>
<li>Click the Github logo in the upper left.<br><img src="c9-signup.png"/></li>
<li>Enter your GitHub username/password</li>
</ul>
</section>
<section>
<section>
<h2>Integrated Development Environment</h2>
<p><b>Imagine if...</b> you were building a wood box.</p>
<p>You had to go to one room to get the saw. Then, another room to get the wood. And another room to get the screws... And another room to get the screwdriver!</p>
<p><b>Wouldn't it be easier if everything was one place?</b></p>
</section>
<section>
<h2>Integrated Development Environment</h2>
<p>An <b>IDE</b> is an <b><u>I</u>ntegrated <u>D</u>evelopment <u>E</u>nvironment</b>.</p>
<p>It collects all the tools for a developer in one place.</p>
<p>As we design more complicated projects, an IDE will make our lives easier.</p>
<p><b>Cloud9 is our IDE!</b></p>
</section>
</section>
<section>
<section>
<h2>Cloud9</h2>
<ul>
<li>Cloud9 organizes each project as a <u>workspace</u>.</li>
<li>Workspaces contain all the files for our project.</li>
<li>Workspaces are <u>public</u>, so don't put anything private in them!</li>
<li>Always use your Github account to log into Cloud9</li>
</ul>
</section>
<section>
<h2>Cloud9</h2>
<p><b>Now we will move our MadLibs project to Cloud9.</b></p>
<p>We will:</p>
<ul>
<li>Create a new workspace.</li>
<li>Create a new page.</li>
<li>Preview our page.</li>
</ul>
</section>
</section>
<section>
<section>
<h2>Create a New Workspace</h2>
<img src="c9-create-workspace.png"/>
</section>
<section>
<img src="c9-workspace-details.png"/>
</section>
</section>
<section>
<h2>Create a New File</h2>
<img src="c9-newfile.png"/>
</section>
<section>
<h2>Copy your MadLibs assignment</h2>
<p>Open your MadLibs page and copy the HTML into the new file.</p>
<p>If you haven't started on one yet, use this JSBin:<br/><a href="http://jsbin.com/luheqo/edit">http://jsbin.com/luheqo/edit</a></p>
</section>
<section>
<section>
<h2>Save File</h2>
<img src="c9-savefile.png"/>
</section>
<section>
<img src="c9-save-dialog.png"/>
</section>
</section>
<section>
<h2>Live Preview</h2>
<img src="c9-livepreview.png"/>
</section>
<section>
<h2>It's Broken!</h2>
<p><b>We didn't add the Javascript!</b></p>
<p>Let's:</p>
<ul>
<li>Copy the Javascript into a new file in Cloud9 called madlibs.js</li>
<li>Include the Javascript in our webpage<br/><i>(Hint: Try placing a "script" tag inside the "head" tag with a "src" attribute set to the script file name!)</i></li>
<li>Test to make sure it works!</li>
</ul>
</section>
<section>
<section>
<h2>Source Code Management</h2>
<p><b>What if you couldn't undo!?</b></p>
<p class="fragment">Programmers make mistakes!</p>
<p class="fragment">We keep old versions of our code to refer to later.</p>
</section>
<section>
<h2>Source Code Management</h2>
<p><b>How do you share files?</b></p>
<p class="fragment">When you are in a team, everyone needs to stay in sync.</p>
<p class="fragment">It's not easy to share files and avoid stepping on eachother's toes!</p>
</section>
<section>
<h2>Source Code Management</h2>
<p><b>What happens when multiple people work on the same file?</b></p>
<p class="fragment">You can do it like a group project - everyone contributes their part and it is all combined at the end.</p>
<p class="fragment">When you are working on hundreds of files, you need the computer to help combine the changes!</p>
</section>
<section>
<h2>Source Code Management</h2>
<p><b>We need something that...</b></p>
<ul>
<li>stores all the versions of our source code.</li>
<li>shares our source code with our team</li>
<li>combines our team's work together</li>
<ul>
<p class="fragment"><b>A <u>S</u>ource <u>C</u>ode <u>M</u>anagement system (SCM)!</b></p>
</section>
</section>
<section>
<section>
<h2>Git</h2>
<p><b>The SCM we will use is called Git.</b></p>
<p>In Git, there are a few terms to learn:</p>
<ul>
<li><b>"repository"</b>: a collection of all your source code with all the versions</li>
<li><b>"commit"</b>: a saved version of changes to your source code</li>
<li><b>"clone"</b>: make a copy of the repository</li>
<li><b>"merge"</b>: combine changes from two different repositories into one</li>
<ul>
</section>
<section>
<h2>Github</h2>
<p>Now we have a way to clone repositories and merge them.</p>
<p>We need a way to keep a "master" copy of our repository that people can access.</p>
<p class="fragment"><b>That is what Github does!</b></p>
</section>
<section>
<h2>How to Use Git</h2>
<ul>
<li>You need the <u>command line</u></li>
<li>Instead of clicking on things, you type commands</li>
<li>After you type the command, press enter</li>
<li>The results of the command appear below!</li>
</ul>
</section>
<section>
<h2>Git Commands</h2>
<ul>
<li><b>git init</b> - create a new repository</li>
<li><b>git status</b> - see what is being tracked and not tracked</li>
<li><b>git add <i><filename></i></b> - track file</li>
<li><b>git commit -m "message"</b> - commit changes</li>
<li><b>git status</b> - see what files have been changed</li>
</ul>
</section>
</section>
<section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Create a Git repository:</b></p>
<img src="git-init-command.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Create a Git repository: Success!</b></p>
<img src="git-init-result.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-command.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-result1.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Add index.html:</b></p>
<img src="git-add-command1.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-command.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-result2.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Add madlibs.js:</b></p>
<img src="git-add-command2.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-command.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Check status of repository:</b></p>
<img src="git-status-result3.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Commit to our repository:</b></p>
<img src="git-commit-command.png"/>
</section>
<section>
<h2>Making our own Git repository</h2>
<p><b>Commit to our repository:</b></p>
<img src="git-commit-result.png"/>
</section>
</section>
<section>
<section>
<h2>Make a Github repository</h2>
<img src="gh-new-repository.png"/><br/>
<img src="gh-new-repository-details.png"/>
</section>
<section>
<h2>Make a Github repository</h2>
<img src="gh-push-existing.png"/>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Required, even if empty.
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: false,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
]
});
</script>
</body>
</html>