News for hackers. Stuff that matters.
Re:Why some apps use fake progress bars (2017) by TheCoreh on Friday February 02, 2018 @06:19PM (#16295050)
Connecting

Fetching data

Processing query

Preparing for display

Re:Why some apps use fake progress bars (2017) by PhasmaFelis on Friday February 02, 2018 @09:31PM (#16295810)
This, yes. Also, if you're processing discrete items in any measurable way (downloading kilobytes, ingesting database rows, querying servers...) that takes longer than one second flat, display that to users. "Processing record 1/1,000,000... Processing record 2/1,000,000..." gives a positive sense of progress. Even if you don't actually know the final total in advance, you should still display whatever you've got.

As a bonus, this can occasionally be useful for bug squashing. "I've been waiting for hours and it's only up to row 5681" when you know for a fact that there's <2000 rows is a lot more informative than "My report won't finish."

Re:Why some apps use fake progress bars (2017) by girvo on Friday February 02, 2018 @06:27PM (#16295090)
Most of those steps will go immediately, and one of them has the same problem the original issue had: it’ll sit on it for ages...
Re:Why some apps use fake progress bars (2017) by dsr_ on Friday February 02, 2018 @07:35PM (#16295393)
A few of the default Debian packages give feedback messages like "This could take a long time..."

Most of them used to take a long time, but hardware has caught up. SSH key generation, locale installation. Instead, it's a warning that briefly appears on modern systems, but is visible for quite a while on, say, a Raspberry Pi.

Re:Why some apps use fake progress bars (2017) by tomc1985 on Friday February 02, 2018 @06:41PM (#16295145)
I designed and maintain a report-generating component and my system does the same thing. (Plus it is helpful as users can tell me where in the process it failed/hung) It doesn't matter how long each message sits on the screen, as long as it changes every so often. Animated, infinite progress bars also help if you don't/can't estimate ETA
Re:Why some apps use fake progress bars (2017) by Retra on Friday February 02, 2018 @07:21PM (#16295336)
A cycling animation only tells you that your computer/UI isn't dead, it doesn't tell you that the underlying task isn't frozen.
Re:Why some apps use fake progress bars (2017) by dingo_bat on Friday February 02, 2018 @08:28PM (#16295586)
In the loading animation of windows 98 there was a horizontal bar of moving colors. And if it stopped animating, you can be 100% sure that the computer is frozen. I wonder if we can do similar with cycling animations.
Re:Why some apps use fake progress bars (2017) by Can_Not on Friday February 02, 2018 @08:04PM (#16295494)
Can it not say "$X items processed..." or have a spinner that updates it's frame at certain intervals? It doesn't have to be a percent, just proof of progress. I had no trouble adding an accurate "$X rows of csv processed" in a laravel (PHP) + VueJS app.
Re:Why some apps use fake progress bars (2017) by dingo_bat on Friday February 02, 2018 @08:25PM (#16295575)
I know this won't work everywhere, but if you know how much time the task generally takes, your progress bar can just be a timer for that duration. Still more informative than fake messages.