3 ms·
> What can the UI do? Not show any estimate when the numbers would be nonsensical? Yes, exactly that. Also, log a warning and, if possible, add the warning to
by xg15 3y ago
> What can the UI do? Not show any estimate when the numbers would be nonsensical?
Yes, exactly that. Also, log a warning and, if possible, add the warning to outgoing telemetry.
Sure, in theory such a situation should never happen because everything was already caught in tests. In theory, our software should also be 100% bug-free. However, because that's not how the world works, it's polite to the user (and makes a better impression) to detect such output and correct for it.
You have the same situation with websites showing NaN in the UI: The website didn't catch it, because the variable is never supposed to be NaN - yet, for some reason it was here and the result was causing frustration for the user.
- pixl97 3y agoHow many checks do you need for each language/locale that has very different displays for their local monitary denomination?