Created
March 21, 2014 20:28
-
-
Save tamouse/9695667 to your computer and use it in GitHub Desktop.
Methods a, b, and c return truthy or falsy. Which of these is better approach?
This file contains 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
method_a(data) && method_b(data) && method_c(data) | |
# or | |
if method_a(data) | |
if method_b(data) | |
method_c(data | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment