Kamis, 28 Juni 2018

Sponsored Links

Is it a feature flag or a feature toggle?
src: blog.launchdarkly.com

A switch feature (also switch feature , flag feature , fins feature , conditional feature , etc.) are techniques in software development that try to provide an alternative to maintain multiple branches of source code (known as feature branches), so features can be tested even before they are finished and ready for release. The feature switch is used to hide, enable or disable features during processing time. For example, during the development process, a developer can enable the feature to test and disable it for other users.

Ongoing release and ongoing implementation give developers quick responses about their coding. This requires the integration of their code changes as early as possible. The feature branches introduce a shortcut to this process. The turn off feature is an important technique used for continuous delivery implementation.

This technique allows developers to release versions of products that have unfinished features. These unfinished features are hidden (toggled) so they do not appear in the user interface. This allows many small versions of the software to be delivered without the cost of branching and constant merging. Shut down feature allows shorter software integration cycles. A team working on the project can use the toggle feature to speed up the development process, which may include incomplete code as well.


Video Feature toggle



Implementation

Turn off feature is basically the variable used in the conditional statement. Therefore, the blocks in this conditional statement can be toggled 'on or off' depending on the value of the feature turned off. The altered code block 'off' is similar to the one commented on. This allows developers to control the flow of their software and bypass features that are not ready for deployment.

The main use of the power off feature is to avoid conflicts that can arise when merging software changes at the last moment before release. Although this can cause toggle debt. Toggle debt arises because the dead code is present in the software after the feature has been permanently activated and generates overhead. This section of code should be carefully removed so as not to interfere with other parts of the code.

There are two main types of feature switch. One is the release switch, which the developer specifies to save or delete before the product release depends on its work. The other is a business toggle, which is stored because it meets different usage compared to the older code.

Shut down feature can be used in the following scenarios:

  1. Added new features to the app.
  2. Improve existing features within the app.
  3. Hide or disable features.
  4. Expand interface.

The power off feature can be saved as:

  1. Line entries in the database.
  2. Properties in the configuration file.

Feature Group

The feature group consists of turning off the features that work together. This allows developers to manage a set of related toggles easily.

Maps Feature toggle



Canary releases

Another benefit of the flag feature is launching the canary. Canary releases (or canary launch or canary deployments) allow developers to have features that are gradually tested by a small group of users. If the performance of a feature is not satisfactory, it can be rolled back without any adverse effects.

While patterns can be applied very simply in most programming languages ​​(eg Java, Angular JS, PHP, JavaScript, etc.), there are libraries available to facilitate further usage.

Martin Fowler stated that the switch feature "should be your last choice when you deal with incorporating features into production". Instead, it is best to break down the features into smaller parts that each can be implemented and introduced safely into the released product without causing any other problems.

The toggling feature is used by many large websites including Flickr, Disqus, Etsy, reddit, Gmail and Netflix, as well as software like Google Chrome Canary.

There are many features of open source feature tagging and tagging features for different programming languages ​​and platforms.

Feature Toggle | LaunchDarkly Blog
src: blog.launchdarkly.com


See also

  • Configuration management software
  • Software product line
  • Comparison of open source configuration management software

Why Leading Companies Dark Launch - DZone DevOps
src: dzone.com


References

Source of the article : Wikipedia

Comments
0 Comments