This does not conflict with Andrew Kelly's point! The software is not your js code!! Your js code is s tiny fraction of the software. The rest of it (including node) has serious design issues. JavaScript is an messy interpreted dynamically-typed language with a week type system that was designed for browser 30 years ago and even its creator discourages you from using it now.
This posts intention was not to conflict with his point. I used it as a hook and because the simple perfect function he was showing reminded me of the one I mentioned in the article.
That's nonsense. a/b is float in Python 3, and even in other languages a/b gets closer to it's actual value as a and b get bigger (the "limit", which is the basis of Algebra). So four operations in programming generally do agree with foundations of Algebra. But a/0=0 is %100 against Algebra. And it's very unintuitive. It's basically saying zero is the same as infinity, and therefore all numbers are the same, so why bother having any numbers at all?
Floats don't have multiplicative inverses, and the floating point operations don't give us any of the mathematical structures we expect of numbers. Floating point division already abandons algebra for the sake of usefulness.
Knuth vol 2 has a nice discussion of floating point operations and shows how to reason about them. Wilkinson's classic "Rounding Errors in Algebraic Processes" (1966) also has a good discussion.
If you were to define a/0 the most logical choice would be a new special value "Infinity". The second best choice would be the maximum supported value of the type of a (int, int64 etc). Anything else would be stupid.
Checking the resistance of some cheap Chinese clip leads I bought. The way these are crimped often doesn't make great contact. But even after soldering them, the resistance was still high. The wires were really thin, but it turns out, the resistance was still high considering that. It turns out, the wires, though they look like copper, are made of iron and coated with copper!
I installed FreeBSD on my old laptop a few days ago. With WiFi, desktop and everything. Pretty much everything worked except for HDMI-connected monitor. And my Linux is not listed in boot menu.
All omega-3 supplements are probably somewhat rancid and possibly harmful, specially in solid / pill form! I personally take cod liver oil (liquid) from a reputable brand, but I still don't %100 trust it to be healthy. It's much better to eat fatty fish or actual cod liver.
Shows prices of:
- Cryptocurrencies
- Gold and silver
- Fiat currency rates
- Stocks