Piazza https piazza comuchicagosummer 2014mpcs 51 037home Course

  • Slides: 29
Download presentation
Piazza: https: //piazza. com/uchicago/summer 2014/mpcs 51 037/home Course website: http: //java-class. cs. uchicago. edu/adv/

Piazza: https: //piazza. com/uchicago/summer 2014/mpcs 51 037/home Course website: http: //java-class. cs. uchicago. edu/adv/

Lecture 02 Agenda: 1/ intro 2/ bit. Bucket register 3/ setup dev environment JDK,

Lecture 02 Agenda: 1/ intro 2/ bit. Bucket register 3/ setup dev environment JDK, maven, git, sourcetree, p 4 merge, net. Beans 8, glassfish 4/ intro to maven, netbeans, & git

Registering Bitbucket account Remote source-control: http: //java-class. cs. uchicago. edu/adv/

Registering Bitbucket account Remote source-control: http: //java-class. cs. uchicago. edu/adv/

Pass by value and reference

Pass by value and reference

pass by value pass by reference Action: Tell my accountant how much I intend

pass by value pass by reference Action: Tell my accountant how much I intend to spend on a new car. Action: Swipe debit card and enter pin at the Bently dealership. Change in bank account: no change. Change in bank account: -125 k.

If a tree falls in a forest and no one is around to hear

If a tree falls in a forest and no one is around to hear it, does it make a sound?

Event-Source (Button) No Event-Listener listening Event (on. Click) No Catcher No Event Listener

Event-Source (Button) No Event-Listener listening Event (on. Click) No Catcher No Event Listener

Event-Source (Button) Event-Listener listening Event (on. Click) On. Click. Listener Any Object Catcher ready

Event-Source (Button) Event-Listener listening Event (on. Click) On. Click. Listener Any Object Catcher ready to catch

Wrong Event

Wrong Event

Event source not registered

Event source not registered

Event-Source (Button) Event-Listener listening Event (on. Click) On. Click. Listener On. Mouse. Listener Any

Event-Source (Button) Event-Listener listening Event (on. Click) On. Click. Listener On. Mouse. Listener Any Object Event (on. Mouse) Catcher ready to catch

Fork-and-Clone projects

Fork-and-Clone projects

Clone Labs

Clone Labs

GIT architecture

GIT architecture

git config --global user. name "Your Name" git config --global user. email "your_email@whatever. com"

git config --global user. name "Your Name" git config --global user. email "your_email@whatever. com"

add/reset/commit: move files from working-dir to stage-dir(aka index) git add src/lec 01/glab/Digital. To. Binary.

add/reset/commit: move files from working-dir to stage-dir(aka index) git add src/lec 01/glab/Digital. To. Binary. java move files from stage-dir(aka index) to working-dir git reset HEAD. git reset head src/lec 01/glab/Digital. To. Binary. java git commit -m “your commit message. ”

Amending: Every commit is associated with a sha-1 hash. That hash is derived from

Amending: Every commit is associated with a sha-1 hash. That hash is derived from 1/ the file changes in that commit and 2/ the previous commit. You can not change any commit unless that commit is at the head. Since no other commits depend on the head, you may safely change the head. To change the head, use git commit --amend -m “your message” git commit --amend --no-edit

Reverting: You can roll back a commit (reverse it) by identifying it's sha 1

Reverting: You can roll back a commit (reverse it) by identifying it's sha 1 hash like so. git revert --no-edit 71 ac

Branching: To list the branches in a project: git branch -r git branch --all

Branching: To list the branches in a project: git branch -r git branch --all To create a branch: git checkout -b branch. Name c 39 b git checkout -b branch. Name To delete a branch: git branch -D branch. Name To checkout a branch: git checkout 7 afe git checkout master

Pushing to remotes: To see the remotes: git remote -v show To push to

Pushing to remotes: To see the remotes: git remote -v show To push to a remote: git push origin master: master git push origin master git push --all

Pulling from remotes: To see the remotes: git remote -v show To pull from

Pulling from remotes: To see the remotes: git remote -v show To pull from a remote: git pull --all git pull origin eval

Net. Beans keymap

Net. Beans keymap