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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Zero, One, Infinity Disease

17 点作者 bkirwi大约 10 年前

4 条评论

bonobo3000大约 10 年前
Yep, really the disease is taking ANY such rule or heuristic and interpreting it to be valid in all situations or in an extreme form.<p>The last paragraph is the simplest and most effective solution - start asking <i>specific</i> (well defined) questions about <i>your</i> system (not all systems or some other bloggers) and suddenly there is no need for any of these bullshit heuristics. I love this approach, its the heart of engineering right here.
评论 #9361272 未加载
bkirwi大约 10 年前
Of course, there really <i>is</i> something special about 0, 1, and Inf -- they&#x27;re the kind of numbers that tend to arise from theory, not just from tuning. Tuning is hugely important for real systems, so an allergy to &#x27;arbitrary&#x27; numbers is not useful; on the other hand, this rule is often a nice heuristic to keep in mind when you&#x27;re picking which numbers to expose in your config files.
评论 #9361294 未加载
tobiasSoftware大约 10 年前
As I understand it, &quot;Zero, one, infinity&quot; is not about what numbers should be coded, it is about what numbers should be hard-coded. The concept is that if you have a number other than one of those three, then as the author says it is most likely a number derived from intuition, limits, or current requirements. All of these can easily change over time, even the value of PI, which might need to be made more or less precise, or the columns of a sudoku when someone wants to create a 1-16 challenge sudoku. Thus, all of these numbers not derived from theory but from tuning should be soft-coded into variables and placed in one location so they can be easily changed if needed.
danellis大约 10 年前
By odd coincidence, tomorrow I&#x27;m recording the first episode of a podcast called &#x27;Zero, One, Infinity&#x27;, so this was a bit weird to see today. If it had been posted in a couple of days, I think I would have assumed from the title it was a bad review ;-)