Skip to content

Instantly share code, notes, and snippets.

@mizrael
Last active February 26, 2018 10:43
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 mizrael/6d453d03b3f7b3d2e194064651ad70ea to your computer and use it in GitHub Desktop.
Save mizrael/6d453d03b3f7b3d2e194064651ad70ea to your computer and use it in GitHub Desktop.
Feature Gating
function compute_stuff(){
/*...*/
if(checkFeatureIsOn("foo_feature")){
new_amazing_shiny_never_used_function();
}else{
old_tested_reliable_and_lovely_function();
}
/*...*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment