# How to Integrate Feature Flags for New Features and Refactoring

DevFeed: [How to Integrate Feature Flags for New Features and Refactoring](<https://devfeed.tech/articles/feature-flags-how-to-use-28686.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2019/08/20/featureflagshowtouse/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2019-08-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [feature flags](<https://devfeed.tech/topics/feature-flags.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [ui](<https://devfeed.tech/topics/ui.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [feature](<https://devfeed.tech/tags/feature.md>), [feature-flags](<https://devfeed.tech/tags/feature-flags.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [tools](<https://devfeed.tech/tags/tools.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to integrate feature flags into an app for new features and existing-code refactoring. It covers showing or hiding UI, preserving old code paths when refactoring, and using staged changes or flags when refactoring critical business logic.

## Source excerpt

Empowered with what feature flags are and why they are useful, let's see how we can actually integrate them into an app. And how can we roll them out to our users?