Re:Show HN: Understanding the Monty Hall paradox through code
by svantana on Sunday March 29, 2020 @11:07AM
(#22719582)
I also do this, among other things to find subtle bugs in code and math. For every unbounded variable, what happens if it is 10^100, or 10^-100? It's a good habit that also makes you view division and logarithms with great suspicion :)
[ Parent
| on HN ]
Re:Show HN: Understanding the Monty Hall paradox through code
by ken on Sunday March 29, 2020 @12:48PM
(#22720423)
One of my first computer science teachers pronounced "/" (in C) as "divide and throw away the remainder", which sounds awkward at first but turns out to be quite helpful. It's one of those operators which, unfortunately, looks just like one from math class but acts very differently, even in common cases.