←back to thread

I'm absolutely right

(absolutelyright.lol)
648 points yoavfr | 1 comments | | HN request time: 0s | source
Show context
latexr ◴[] No.45138173[source]
As I opened the website, the “16” changed to “17”. This looked interesting, as if the data were being updated live just as I loaded the page. Alas, a refresh (and quick check in the Developer Tools) reveals it’s fake and always does the transition. It’s a cool effect, but feels like a dirty trick.
replies(6): >>45138194 #>>45138198 #>>45138206 #>>45138881 #>>45139583 #>>45146849 #
pessimizer ◴[] No.45138881[source]
Reminds me that the reason that loading spinners spin is so that you knew that the loading/system hadn't frozen. That was too hard (you actually had to program something that could understand that it had frozen), so it was just replaced everywhere with an animation that doesn't tell you anything and will spin until the sun burns out. Progress!
replies(3): >>45138988 #>>45140683 #>>45141943 #
Wowfunhappy ◴[] No.45138988[source]
…although in many cases you kind of don’t have a choice here, right? If you’re waiting for some API to return data, there’s basically no way to know whether it has stalled. Presumably there will be a timeout, but if the timeout is broken for some reason, the spinner will just spin.
replies(1): >>45139252 #
pessimizer ◴[] No.45139252[source]
You can't figure out how to fix that? Does that problem seem impossible to you?

Maybe don't start an animation, and instead advance a spinner when a thing happens, and when an API doesn't come back, the thing doesn't get advanced?

replies(3): >>45139396 #>>45139942 #>>45141325 #
1. frotaur ◴[] No.45139396{4}[source]
Solve the halting problem to show accurate spinners