From the course: Git Workflows
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Feature flags
- [Instructor] When practicing trunk based development, the work for a larger feature may be broken down into smaller pieces that you're frequently merging into trunk. For some features, this can mean that parts of its code are merged into trunk while other parts are still under development. So those completed parts of a feature that are merged into trunk might get shipped to production in the next release regardless of whether the entire feature is ready. That might raise some concerns for you, but a technique called feature flagging makes it easy to handle this situation. Let me explain how it works. A feature flag is used to toggle the availability of a feature in our software. It allows us to deploy code without making it visible to the end users, or, if we'd like, we can choose to make the feature available under certain conditions. Let me give you an example. Let's say you're working on an eCommerce website and…