Hacker News new | ask | show | jobs
by kennethh 2618 days ago
If one read Martin Fowler about feature branching, https://martinfowler.com/bliki/FeatureBranch.html and articles from Jez Humble both agree on that one should use trunk based development and use feature toggles in most cases for development.
1 comments

Sure, do end up with hundreds of commits where any given combination of feature flags fails, except sometimes the default.

Seriously, this is the quintessential Gentoo Linux problem. Nobody can test all the combinations making the flags almost instantly useless. (And some essentially forced on.)

Agree that feature flags count should not explode because you can never test all combinations. Feature toggles should drive the life span of a feature from start of development to "adopted and becomes the default" or "rejected and we scrap it all out". At the end of the day the number of feature toggles should remain relatively low.
Having used Gentoo for a long time I haven't seen it be that big of an issue.

But I can definitely see too many feature flags leading to a byzantine web of untestable combinations.