Imagine if... you were building a wood box.
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!
Wouldn't it be easier if everything was one place?
An IDE is an Integrated Development Environment.
It collects all the tools for a developer in one place.
As we design more complicated projects, an IDE will make our lives easier.
Cloud9 is our IDE!
Now we will move our MadLibs project to Cloud9.
We will:
Open your MadLibs page and copy the HTML into the new file.
If you haven't started on one yet, use this JSBin:
http://jsbin.com/luheqo/edit
We didn't add the Javascript!
Let's:
What if you couldn't undo!?
Programmers make mistakes!
We keep old versions of our code to refer to later.
How do you share files?
When you are in a team, everyone needs to stay in sync.
It's not easy to share files and avoid stepping on eachother's toes!
What happens when multiple people work on the same file?
You can do it like a group project - everyone contributes their part and it is all combined at the end.
When you are working on hundreds of files, you need the computer to help combine the changes!
We need something that...
A Source Code Management system (SCM)!
The SCM we will use is called Git.
In Git, there are a few terms to learn:
Now we have a way to clone repositories and merge them.
We need a way to keep a "master" copy of our repository that people can access.
That is what Github does!
Create a Git repository:
Create a Git repository: Success!
Check status of repository:
Check status of repository:
Add index.html:
Check status of repository:
Check status of repository:
Add madlibs.js:
Check status of repository:
Check status of repository:
Commit to our repository:
Commit to our repository: