If anyone thinks code should be perfect then they never tried to do it themselves.
I'm a very inexperienced coder but I can cobble a bit of Python together, I got a problem the other day with adding two floats together and then comparing to a third float; apparently in binary adding 0.00264 and 0.0001 does not equal 0.00274... until you work with this stuff you don't realise just how weird results can happen. Yes testing is the key, but with weird math like that it's easy to miss what should be logical certainty.
You are viewing a single comment's thread from:
Often it is the simple things that can break code... just like this... that is a great example.