Skip to content

Instantly share code, notes, and snippets.

@getify
Created August 11, 2014 14:59
Show Gist options
  • Save getify/80c8c68276dbda50bfc7 to your computer and use it in GitHub Desktop.
Save getify/80c8c68276dbda50bfc7 to your computer and use it in GitHub Desktop.
articulate the differences in these two snippets. which one is "easier"? which one is "simpler"?
function XYZ() {
X();
}
function X() {
// do X
Y();
}
function Y() {
// do Y
Z();
}
function Z() {
// do Z
}
function XYZ() {
X();
Y();
Z();
}
function X() {
// do X
}
function Y() {
// do Y
}
function Z() {
// do Z
}
@AmaanC
Copy link

AmaanC commented Aug 16, 2014

The latter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment