Created
August 19, 2013 22:43
-
-
Save quamen/6275089 to your computer and use it in GitHub Desktop.
API for feature flipping
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
I've been working on a feature flipping class, and I'm after some opinions on naming for the method that checks if the flip is active or not: | |
The example is for flipping the sign up feature of the application: | |
Which do you prefer and why? | |
do something if sign_up_is_active? | |
or | |
do something if sign_up_active? | |
What about:
do something if you_are_quite_certain_the_sigin_up_is_indeed_active
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
depends if your going to do elses.
if it's just a show/do x if why, I'd be inclined to put it in a block like