by grishka · 6y ago · 0 comments
I don't understand why modern software has to suck so much. If you can't perform some operation for some reason, for the love of god, at least show a sensible error message so people who haven't spent ridiculous amounts of time reading the source code of your product as part of their job can troubleshoot their systems. Not "something failed, go read logcat, maybe it helps, good luck".
While I’m not sure whether it’s true, I think the reasoning behind this is that to the average user, a sensible error message is about as useful as "something failed, good luck".
In this sort of scenario the better choice rather than implementing error detection is just fixing the original problem that caused an infinite loop so users don't need to fix anything in the first place. I think the reason why debugging/resolving issues seems so complicated in modern times is in part because we already did fix most/all the "easy" issues from the past generation -- the only remaining issues are extremely hard to catch or, in the case of the Halting Problem you experienced, mathematically impossible.
Sure, not having the bug would be better, but I can only assume that the developers didn't intend to make the conversion loop. They failed to not have the bug then, and most likely will fail to not have bugs in the future; that's life. The solution in this case may not be to detect an error condition, but to just indicate what the software is doing. Ex a persistent notification for 'updating database schema', maybe appearing after a 5 minute timeout; if that sits around for an hour or five days or something, you can google around for it.
The only way to do this typically is to either already be aware of the issue so you can add an error (And in that case you would have just fixed the issue)
Or to dump a stack trace.