News for hackers. Stuff that matters.
Re:Why some apps use fake progress bars (2017) by diplomatpuppy on Friday February 02, 2018 @05:34PM (#16294756)
I had a report in Microsoft Access that took about five minutes to run - and the users hated it.

I had the application throw up a fake dialog with fake messages about "Collating data, Cross checking, Sorting" and other such nonsense.

The report now took eight minutes to run because I had to abuse the "On Timer" event for it to work.

The users were delighted with the improvement.

Re:Why some apps use fake progress bars (2017) by JoshMnem on Friday February 02, 2018 @10:09PM (#16295916)
That is one thing I dislike about sites that show no loading bar. On a slow connection it's impossible to tell if the page is still loading or already failed.

It's also one of the irritating things about "Material Design" websites, where responses to clicks are artificially delayed before speeding out with unnatural acceleration. "Nothing is happening. JUST KIDDING!" I'm not sure if that is to mask the slowness of mobile devices or if it's the cause of them. It's the animation spam[1] of the current generation of UIs.

* [1] "Let's make our website sparkle. It will be 'delightful'." http://dynamicdrive.com/dynamicindex3/snow.htm

Re:Why some apps use fake progress bars (2017) by ubernostrum on Friday February 02, 2018 @11:27PM (#16296169)
That is one thing I dislike about sites that show no loading bar. On a slow connection it's impossible to tell if the page is still loading or already failed.

Web browsers have progress bars.

I think your complaint is with "sites" that just serve a JS payload and then load "the real site" entirely from requests made by JS. Turns out if you generate and serve actual HTML, you get a progress bar for free!

Re:Why some apps use fake progress bars (2017) by emodendroket on Saturday February 03, 2018 @01:46AM (#16296551)
I don't know why every thread about Web applications needs someone to tell me that technically HTML was just designed to be a document format. OK, great, now it isn't just that.
Re:Why some apps use fake progress bars (2017) by tinus_hn on Saturday February 03, 2018 @04:31AM (#16296913)
First someone states that the way web sites work now sucks. Then the next person states, ‘Well we used to build sites this way and then it doesn’t suck’. And then the next person comes in saying ‘well that just isn’t the way we build sites now’.

If that isn’t the way we build sites now, either change the way we build sites or accept that it sucks. But this is Hacker News so we’re supposed to think about different ways to build sites than what we do now.

Re:Why some apps use fake progress bars (2017) by emodendroket on Saturday February 03, 2018 @10:09AM (#16297885)
It's just... what's the point of talking to anyone who will listen about how HTML was designed for hypertext? Yes, we all know that. Today the world's most-popular Web sites include YouTube and Facebook. We aren't going back.
Re:Why some apps use fake progress bars (2017) by scoot on Saturday February 03, 2018 @06:13AM (#16297167)
This a (mostly) solved problem. With Server Side Rendering the html payload delivers what the client side is would have rendered. The client side js takes over rendering after it loads.
Re:Why some apps use fake progress bars (2017) by fpig on Saturday February 03, 2018 @11:49AM (#16298310)
He did not say that. Generating the HTML for the initial page load server-side does not make HTML "just a document format". It improves loading and search-friendliness of your web site.
Re:Why some apps use fake progress bars (2017) by pletnes on Saturday February 03, 2018 @03:58AM (#16296857)
That’s true, but I can mention several online stores that do this. Even on a good network the site remains blank for seconds at times. If they at least served me a logo I’d know the site wasn’t dead!
Re:Why some apps use fake progress bars (2017) by Bromskloss on Saturday February 03, 2018 @06:52AM (#16297263)
> I can mention several online stores that do this

I would like to hear which ones they are, that I may try them.

Re:Why some apps use fake progress bars (2017) by chatmasta on Saturday February 03, 2018 @04:46AM (#16296942)
I solved this in a react app I’m working on by overriding XMLHttpRequest.prototype.open to listen for the request lifecycle events and update a global “percent loaded” used to render a progress bar at the top of the page.

It’s far from perfect but is at least a good enough heuristic for the user to know when the page is loading a request.

Re:Why some apps use fake progress bars (2017) by JoshMnem on Saturday February 03, 2018 @07:32PM (#16300539)
Try to load an AMP page with JavaScript turned off. It can take many seconds, and there is no loading indicator.
Re:Why some apps use fake progress bars (2017) by emodendroket on Saturday February 03, 2018 @01:45AM (#16296546)
> That is one thing I dislike about sites that show no loading bar. On a slow connection it's impossible to tell if the page is still loading or already failed.

To be fair, depending on how the progress bar is implemented, it might not be a guarantee.

Re:Why some apps use fake progress bars (2017) by nitely on Saturday February 03, 2018 @09:32PM (#16300956)
Clicks have a 200ms (IIRC) delay on Android to give a chance to recognize other gestures. There are hacks to get ride of it, though. It may have to do with that.
Re:Why some apps use fake progress bars (2017) by JoshMnem on Sunday February 04, 2018 @12:33AM (#16301515)
It's on desktop websites too, like YouTube (add to watchlist), and the delays are longer than 200 ms.
Re:Why some apps use fake progress bars (2017) by mrisoli on Friday February 02, 2018 @06:24PM (#16295074)
I remember reading long ago about how they did something similar at an airport(Dallas IIRC).

Basically, people complained about baggage claim taking too long, so they just moved the baggage claim area to the other side of the airport, so it took longer for passengers to reach it, by the time they did, their bags would already be there, so the complaints stopped.

Re:Why some apps use fake progress bars (2017) by BlahBoy3 on Friday February 02, 2018 @06:32PM (#16295116)
It was actually a Houston airport; here's an article that talks more about it: http://www.nytimes.com/2012/08/19/opinion/sunday/why-waiting...
Re:Why some apps use fake progress bars (2017) by Spivak on Friday February 02, 2018 @06:26PM (#16295086)
I feel like this really isn't deception but actually solving the problem which is that passengers didn't want to stand around.
Re:Why some apps use fake progress bars (2017) by nazgul17 on Friday February 02, 2018 @09:26PM (#16295792)
In particular, people don't like to feel they are wasting time. Walking being a "necessary" step, doesn't feel like a waste of time.
Re:Why some apps use fake progress bars (2017) by afandian on Saturday February 03, 2018 @09:09AM (#16297671)
It also distributes people through the airport to avoid localized crowding.
Re:Why some apps use fake progress bars (2017) by lulmerchant on Sunday February 04, 2018 @05:37PM (#16305359)
Years ago I discovered a bit of a trick for getting through customs in Jakarta in about 5 mins (I was travelling there a lot for work). However, what I always ended up with was standing around for about 15-20 minutes for my bags to be unloaded, as even the priority baggage was rather slow off the plane.
Re:Why some apps use fake progress bars (2017) by thomasahle on Saturday February 03, 2018 @06:18AM (#16297183)
Seems like the passengers could have solved this themselves, by just walking in circles.
Re:Why some apps use fake progress bars (2017) by DonHopkins on Saturday February 03, 2018 @10:16AM (#16297907)
Or walking on the people movers and escalators going in the opposite direction!
Re:Why some apps use fake progress bars (2017) by dingo_bat on Friday February 02, 2018 @08:29PM (#16295589)
Except they had to spend the same amount of time walking. If presented as a choice I'd usually choose standing.
Re:Why some apps use fake progress bars (2017) by zwily on Friday February 02, 2018 @09:32PM (#16295812)
Not me. Walking feels productive, standing is boring. Same with driving - my brain would rather feel like it’s making forward progress even if the route I take is longer.
Re:Why some apps use fake progress bars (2017) by birdman3131 on Friday February 02, 2018 @09:53PM (#16295867)
I have a cell phone to eliminate the standing is boring problem. (Before that it would have been a book)
Re:Why some apps use fake progress bars (2017) by baddox on Friday February 02, 2018 @10:04PM (#16295898)
Even if you actually would make that choice doesn’t mean that you would be happier than if the airport implemented the other option and didn’t give you the choice. That may sound counterintuitive, but there’s no particular reason to think it’s contradictory.
Re:Why some apps use fake progress bars (2017) by comex on Friday February 02, 2018 @11:11PM (#16296120)
Even right after getting off an airplane, where you had to sit in a cramped seat for hours on end? I’d much rather take the opportunity to stretch my legs.
Re:Why some apps use fake progress bars (2017) by RhodesianHunter on Friday February 02, 2018 @09:51PM (#16295862)
It's not like they tore up all of the parking/loading/unloading areas. They just moved the baggage claim to the farthest point along which everyone had to walk anyways.
Re:Why some apps use fake progress bars (2017) by baddox on Friday February 02, 2018 @10:05PM (#16295903)
That’s a slightly different example then, because that actually does save time. Parallel vs. serial.
Re:Why some apps use fake progress bars (2017) by Bromskloss on Saturday February 03, 2018 @06:56AM (#16297279)
I think even the passengers' reaction might make sense here. Standing around at the baggage claim and observing that no baggage arrives makes you worry that there might be some serious error that will make things take a very long time.
Re:Why some apps use fake progress bars (2017) by veritas3241 on Saturday February 03, 2018 @09:29AM (#16297740)
I wish they would do it at Dallas. Most of the baggage carousels are ~100 feet from the gate. Many impatient people!
Re:Why some apps use fake progress bars (2017) by tyingq on Friday February 02, 2018 @05:51PM (#16294897)
Visual confirmation that it isn't hung, I'd be happy too.
Re:Why some apps use fake progress bars (2017) by ploxiln on Friday February 02, 2018 @11:06PM (#16296104)
You're happy until 30 minutes later when the progress bar is still getting asymptotically closer to the end, and you come to suspect that the only thing that didn't crash was the progress bar.
Re:Why some apps use fake progress bars (2017) by flyGuyOnTheSly on Saturday February 03, 2018 @03:43AM (#16296826)
>when the progress bar is still getting asymptotically closer to the end

That, my friend, is an impressive command of the English language.

Thank you for teaching me the word asymptotically! [0]

http://www.dictionary.com/browse/asymptotically

Re:Why some apps use fake progress bars (2017) by herbstein on Saturday February 03, 2018 @07:25AM (#16297353)
I think most people that have done a CS degree would at least know the word. My cs101 class talked about asymptotic notation.
Re:Why some apps use fake progress bars (2017) by sk5t on Saturday February 03, 2018 @08:58AM (#16297629)
Not CS but any study of limits in math, perhaps with differential equations. And it’s a useful term generally, much more likely to come up in conversation than “subtrahend” or “mantissa” but not nearly as much as “tangent.”
Re:Why some apps use fake progress bars (2017) by flyGuyOnTheSly on Saturday February 03, 2018 @03:38PM (#16299505)
And that must be why I have yet to hear it, as I never took CS.
Re:Why some apps use fake progress bars (2017) by tyingq on Saturday February 03, 2018 @11:49AM (#16298311)
At least it didn't say "orthagonal". Don't know why, but that word pops up here way too often.
Re:Why some apps use fake progress bars (2017) by digi_owl on Friday February 02, 2018 @10:01PM (#16295889)
I am reminded of a webcomic, that i fail to locate at this moment, that reminded me of the practice of placing something next to a progress bar, like say during a Windows 95 install, to check if anything is actually happening.
Re:Why some apps use fake progress bars (2017) by Larrikin on Saturday February 03, 2018 @12:19AM (#16296322)
This is the comic you're thinking of. http://www.commitstrip.com/en/2015/02/19/when-i-install-a-so... This was one of the comics that convinced me to add them to my RSS feed. I have not been disappointed since.
Re:Why some apps use fake progress bars (2017) by slavik81 on Saturday February 03, 2018 @01:20AM (#16296472)
It's a blank page that says "Loading..." Is that the joke...?

edit: I started browsing around their site, and when I returned to that page via the back button, the actual comic was there.

Re:Why some apps use fake progress bars (2017) by digi_owl on Saturday February 03, 2018 @02:06AM (#16296598)
I removed them from same recently because I felt I could no longer relate to the jokes, or some such.
Re:Why some apps use fake progress bars (2017) by sundvor on Saturday February 03, 2018 @05:28AM (#16297049)
That's so brilliant because it was true. (Nailed it, pixel perfect)
Re:Why some apps use fake progress bars (2017) by reificator on Friday February 02, 2018 @10:18PM (#16295947)
I do that whenever I have to wait on a progress bar. I zoom in with whatever accessibility options there are, then when a pixel is 3-5mm I put my mouse cursor at the end of the bar and wait.
Re:Why some apps use fake progress bars (2017) by taneq on Saturday February 03, 2018 @02:13AM (#16296615)
I don't use the zoom, but yeah, parking the cursor right at the progress bar to see if it's advanced is useful if only to amuse myself. :)
Re:Why some apps use fake progress bars (2017) by escherize on Friday February 02, 2018 @11:04PM (#16296100)
Wow, I thought I was the only one.
Re:Why some apps use fake progress bars (2017) by grkvlt on Sunday February 04, 2018 @01:56PM (#16304176)
To save time in the future, bear in mind any time you think you are the only person that does or notices something: you aren't. This is due to the fact that people are all running on the same physical architecture, with very similar cultural and social ecosystems, plus the law of large numbers. Note that this does not apply to edge cases such as people engaged in activities or domains with a very small number of participants...
Re:Why some apps use fake progress bars (2017) by tzahola on Friday February 02, 2018 @10:40PM (#16296021)
Classic!
Re:Why some apps use fake progress bars (2017) by hutzlibu on Friday February 02, 2018 @05:52PM (#16294902)
Couldn't you have give also vague, but accurate information as well?

User's like to know what's going on, even if they maybe don't understand all the details, but at least they see things are happening and not just a (fake) progress bar. So they can connect more to what is happening and therefore be more understanding and patient instead of just being told to wait, with no further information, which nobody likes.

Re:Why some apps use fake progress bars (2017) by benjohnson on Sunday February 04, 2018 @01:02PM (#16303879)
It would be nice - but the Microsoft Access framework didn't really give you a way to ask the query system "How far along are we?"
Re:Why some apps use fake progress bars (2017) by markcerqueira on Friday February 02, 2018 @06:16PM (#16295033)
> Couldn't you have give also vague, but accurate information as well?

Could you give me an example of what you consider "vague, but accurate information?"

Re:Why some apps use fake progress bars (2017) by floatrock on Saturday February 03, 2018 @01:20AM (#16296474)
The article's discussion about the NYT election accuracy meter wiggling randomly (but within the error bars) is a textbook example of "vague but accurate" information, perhaps to a fault.

How do you visually represent "error bars" to someone who's not technical enough to have ever seen them? Not everyone takes college stats, math, and engineering.

Technically, wiggling within the error bars is a precise way of saying "the precise location is vague -- it's somewhere within this range", in that at any moment it is showing one precise, acceptable guess.

The most fascinating piece there was that as the error bars decreased, the range of the wiggling decreased as well.

Yeah, it doesn't convey the extend of the error bars instantaneously -- you need to stare at it over time -- but it does convey the idea of error bars.

I think the people upset about the error wiggle are either a) being pedantic that it's not visualized in the way they learned it should be visualized back in college; or b) they haven't accepted the idea that sometimes we don't have an exact precise black-and-white answer (we DO have ways to precisely quantify the degree of our uncertainty though).

All of this not to say it was the best execution... perhaps if they 'ghosted' previous needle positions like how old movie radars ghost a green blip as the thingie spins around, maybe it would have been a kind of hybrid approach where the error bars do kinda appear in the overlapping ghosting shadows but still change over time...

Re:Why some apps use fake progress bars (2017) by chocolatebunny on Friday February 02, 2018 @06:32PM (#16295114)
"reticulating splines"

I guess the lesson to be learnt here is that people are more understanding if you appear to be transparent but you don't have to ACTUALLY be transparent to get the affect.

Re:Why some apps use fake progress bars (2017) by 52-6F-62 on Friday February 02, 2018 @06:57PM (#16295221)
Reminds me of the loading screen for The Sims (an obvious parody of the above mentioned tactic)

(You might want to mute it. The loading messages are at the bottom)

https://www.youtube.com/watch?v=PpMiI2QooKQ

Re:Why some apps use fake progress bars (2017) by simcop2387 on Friday February 02, 2018 @07:09PM (#16295272)
Reticulating splines actually comes from SimCity 2000 and they then used the idea in The Sims later

http://sims.wikia.com/wiki/Reticulating_splines

Re:Why some apps use fake progress bars (2017) by presspot on Saturday February 03, 2018 @12:03AM (#16296280)
Actually, we used that phrase in a deceptive 'loading' progress box in PC/GEOS in 1989
Re:Why some apps use fake progress bars (2017) by RhodesianHunter on Friday February 02, 2018 @08:51PM (#16295672)
Oh, interesting. I thought it came from Don't Starve but they must have been adopting this from SimCity.
Re:Why some apps use fake progress bars (2017) by misnome on Saturday February 03, 2018 @05:45AM (#16297089)
Yes, it’s a relatively common SimCity reference, though I could swear I saw “Don’t Starve” say “Reticulating Pines”.

I don’t think I’ve ever seen another game than simcity give it a voiceover...

Re:Why some apps use fake progress bars (2017) by 52-6F-62 on Friday February 02, 2018 @09:04PM (#16295723)
Ah! That's right! Thanks
Re:Why some apps use fake progress bars (2017) by eurticket on Friday February 02, 2018 @08:53PM (#16295685)
"Doing things you don't want to know about"
Re:Why some apps use fake progress bars (2017) by djsumdog on Friday February 02, 2018 @10:15PM (#16295936)
Makes me think of the loading screen from Don't Starve
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.
Re:Why some apps use fake progress bars (2017) by TheSpiceIsLife on Friday February 02, 2018 @09:06PM (#16295735)
In the same vein, at my work in the steel construction industry, when asked by internal and external customers how I'm going with their laser cut components I've taken to telling them: "Your job is important to us and has progressed in the queue".

I can't always give an accurate response because our scheduling is constantly being derailed by urgent tasks and the not-so-urgent tasks get complete in between.

People just want to know you haven't forgotten about them, throw in some light humour and a "I'll try to get it done before knock off tomorrow <wink wink>" and they tend to let me get back to working.

Re:Why some apps use fake progress bars (2017) by rayalez on Saturday February 03, 2018 @07:36AM (#16297374)
Sounds like a placebo button:

https://en.wikipedia.org/wiki/Placebo_button

They add fake "close doors" buttons to the elevators, that arent connected to anything, but make people feel they have agency and it makes waiting for doors to close less frustrating.

Re:Why some apps use fake progress bars (2017) by oh_sigh on Friday February 02, 2018 @10:56PM (#16296070)
This sounds like a Coding Horror story that is entirely made up. Using a timer made your code go from 5 to 8 minutes?
Re:Why some apps use fake progress bars (2017) by benjohnson on Sunday February 04, 2018 @01:07PM (#16303907)
We had only 16 Megs of RAM. I think it had put chunks of the query process to virtual memory to deal with the 'on timer' stuff in the GUI process.
Re:Why some apps use fake progress bars (2017) by JustSomeNobody on Friday February 02, 2018 @07:43PM (#16295421)
Ages ago I evaluated some reporting software. We were using Crystal Reports at the time. One thing that CR did better than the others was make pages available as they were generated. This made the software feel faster even though it was slower than one or two of the others[0] at the time.

[0] Can't remember which ones exactly.

Re:Why some apps use fake progress bars (2017) by starsinspace on Saturday February 03, 2018 @05:38AM (#16297071)
For interactive applications, reponsiveness trumps raw throughput. It's what made operating systems like AmigaOS and BeOS so fast: they didn't actually crunch numbers faster, but they always stayed responsive and quickly reacted to user input under any load, that made them feel faster.
Re:Why some apps use fake progress bars (2017) by ams6110 on Friday February 02, 2018 @08:33PM (#16295607)
Just had a little PTSD flashback moment there at seeing the words "Crystal Reports"
Re:Why some apps use fake progress bars (2017) by sundvor on Saturday February 03, 2018 @05:31AM (#16297057)
Oh dear. That garbage came with Cold Fusion (before it became ColdFusion), IIRC.
Re:Why some apps use fake progress bars (2017) by supergreg on Friday February 02, 2018 @08:33PM (#16295608)
Which is why browsers take so seriously the time to first paint despite the efforts by javascript frameworks to push it back.
Re:Why some apps use fake progress bars (2017) by whowouldathunk on Friday February 02, 2018 @06:32PM (#16295118)
Missed opportunity for "reticulating splines"
Re:Why some apps use fake progress bars (2017) by DonHopkins on Saturday February 03, 2018 @10:22AM (#16297931)
The tradition of "reticulating splines" started in Maxis games:

http://sims.wikia.com/wiki/Reticulating_splines

And now lots of other games and web sites do it too, even compiling Firefox:

http://sims.wikia.com/wiki/Reticulating_splines/Usage_outsid...

The "Stage 5" evacuation completion detection timer in Austin Powers could have used a tad longer debouncing delay:

https://www.youtube.com/watch?v=YewcrxOQNvk

Re:Why some apps use fake progress bars (2017) by DonaldFisk on Saturday February 03, 2018 @12:48PM (#16298584)
Erik Naggum reported that removing garbage collection messages from Emacs caused people to think it had been sped up: http://grokbase.com/t/perl/perl6-internals/00cmr2ak01/garbag...
Re:Why some apps use fake progress bars (2017) by bitwize on Friday February 02, 2018 @07:17PM (#16295318)
Writing tables to disk...

Saving changes to template...

Rebuilding index...

https://youtu.be/Vd4fj9Efl4s