Skip to content

Instantly share code, notes, and snippets.

@ybakos
Created March 19, 2014 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybakos/9641952 to your computer and use it in GitHub Desktop.
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