Created
August 11, 2014 14:59
-
-
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"?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function XYZ() { | |
X(); | |
} | |
function X() { | |
// do X | |
Y(); | |
} | |
function Y() { | |
// do Y | |
Z(); | |
} | |
function Z() { | |
// do Z | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function XYZ() { | |
X(); | |
Y(); | |
Z(); | |
} | |
function X() { | |
// do X | |
} | |
function Y() { | |
// do Y | |
} | |
function Z() { | |
// do Z | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The latter!