Using feature switches fore code development is a technique used by software developers or DevOps professionals to turn portions of code on or off without requiring a rebuild of the application. There can be many reasons for using this technique. Often, a feature may need to be released but is in the same build as a feature that cannot be released. In other cases important code releases require customer notification that may not have happened yet. Releasing the code with the ability to turn certain features off can clear it as a work item for the IT team while leaving the business with the flexibility to release the feature at a later date.
Feature switches for the Clearent back end development team typically come in two parts: a configuration setting indicating the state of the feature and a dependency swap or IF statement to switch the behavior out based on the configuration setting. Here is a simple example of what a feature switch could look like: