TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Feature Flags vs. Configuration Options – Same Difference?

61 点作者 m0nhawk3 个月前

3 条评论

jillesvangurp3 个月前
Nice to see an old article of mine referred in that article (A Taxonomy of Variability Realization Techniques). Not my best work. The publishing date reflects that. We wrote most of that while I was still living in Sweden (I moved away in 2000), I completed my Ph. D. in 2002 and and after a post doc left the academic world in 2004. This paper was bounced around editorial boards for a while before we finally got it published.<p>In any case, the thing that we tried to make clear with that paper is that there are different ways to make software do different things (variability) and that these techniques have trade offs. That&#x27;s still true today and people using the wrong ones make life harder for themselves and their users.<p>The main trade off is when you have to lock in your choice. With compile or build time feature flags, you are stuck with whatever you set before you ship the binary. You can&#x27;t change it after. A change will require users to update their software. Configuration gives more flexibility. That breaks into runtime configuration and before runtime configuration.<p>The broader context here is the notion of companies that build multiple products using the same code base. How do they differentiate products from each other. How do they create new variants. And how do these get configured. Some companies cam up with really complicated ways to do this. The further back you have to go to change a choice (e.g. making source file change vs. setting a checkbox in a configuration screen), the more expensive it gets.
razkarcy3 个月前
&gt; While documentation is often disliked, it is essential for configuration options, because [...] options are only added to a text file with a one-line comment at best.<p>This resonates. Feature Flags over time devolve into a lovely career of code archaeology.
评论 #43045575 未加载
评论 #43047617 未加载
esafak3 个月前
I read a thought-provoking article here about feature flags, entitlements, keeping them in but using a database or decoupling something something. Anyone remember the one? I am trying to grasp a principled way to collectively approach feature flags, entitlements, and authz.