TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Zero, One, Infinity Disease

17 pointsby bkirwiabout 10 years ago

4 comments

bonobo3000about 10 years ago
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 未加载
bkirwiabout 10 years ago
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 未加载
tobiasSoftwareabout 10 years ago
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.
danellisabout 10 years ago
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 ;-)