Visit-o-matic
Object-oriented language such as Java tends to structure the code according to data more than according to functions. more…
Object-oriented language such as Java tends to structure the code according to data more than according to functions. more…
For example, let suppose we have binary trees whose nodes are the “plus”
operator and leaves are a “1”.
The code of a sum function for those trees would actually be split
in many classes when written in Java :
interface PlusOrJustInteger {}
class JustInteger implements PlusOrJustInteger {
private int value = 1;
…
public int treeSum() {
return value;
}
}
class Plus implements PlusOrJustInteger {
private PlusOrJustInteger left;
private PlusOrJustInteger right;
…
public int treeSum() {
return left.treeSum() + right.treeSum();
}
}
This may, or may not, be the organisation that the user wants.main branch
Cloning this repository:
git clone git://gitorious.org/visitomatic/master.git master cd master
Add this repository as a remote to an existing local repository:
git remote add master git://gitorious.org/visitomatic/master.git git fetch master git checkout -b my-local-tracking-branch master/master_or_other_branch

Saturday March 17 2012
Favorite
13:44
ipuskaric1234 started watching visitomatic/master
Professional Gitorious services - Git hosting at your company, custom features, support and more. gitorious.com.
