Skip to content

Instantly share code, notes, and snippets.

@ybakos
Created March 19, 2014 13:45
Show Gist options
  • Select an option

  • Save ybakos/9641952 to your computer and use it in GitHub Desktop.

Select an option

Save ybakos/9641952 to your computer and use it in GitHub Desktop.
In-class refactoring goal for March 19
// YOUR NAME
// Refactoring global variables and functions into appropriate classes.
// And an exploration of composition.
Car hooptie;
Engine hemi;
void setup() {
size(500, 500);
// ???
}
void draw() {
hooptie.draw();
hemi.draw();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment