Click here to Skip to main content
15,906,625 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: New is not always better - Online service/software tip needed Pin
Johnny J.2-Sep-15 22:39
professionalJohnny J.2-Sep-15 22:39 
GeneralRe: New is not always better - Online service/software tip needed Pin
_Maxxx_2-Sep-15 23:34
professional_Maxxx_2-Sep-15 23:34 
GeneralRe: New is not always better - Online service/software tip needed Pin
Johnny J.2-Sep-15 23:45
professionalJohnny J.2-Sep-15 23:45 
GeneralRe: New is not always better - Online service/software tip needed Pin
_Maxxx_2-Sep-15 23:46
professional_Maxxx_2-Sep-15 23:46 
GeneralRe: New is not always better - Online service/software tip needed Pin
Johnny J.2-Sep-15 23:47
professionalJohnny J.2-Sep-15 23:47 
GeneralRe: New is not always better - Online service/software tip needed Pin
dandy723-Sep-15 2:16
dandy723-Sep-15 2:16 
GeneralProgress bar time display preference Pin
Guerrilla Coder2-Sep-15 15:13
Guerrilla Coder2-Sep-15 15:13 
GeneralRe: Progress bar time display preference PinPopular
newton.saber2-Sep-15 16:19
newton.saber2-Sep-15 16:19 
Unless you've actually implemented a progressbar you may not know how ridiculous the entire situation is. I didn't, before I successfully implemented a few.

There Is A Secret
Users probably wonder why they never calculate properly. There is a secret. I'm not kidding.

But, again, you have to have implemented on to really think about it.

An Example Is Required
For example suppose you are going to search through 100 random text documents for a specific string match.

The Problem
Well, most likely those documents are different byte sizes, but maybe you update the progress bar after examining each file. Now, further suppose, that the first 100 documents are only 100 bytes long, but the last document is 15MB. Then you will get 99% done very quickly and then the last one will take far longer and that last 1% will take longer than the entire 99%.

You may believe there is a way around this, but there isn't a great way -- well, at least with the Windows Forms progress bar controls.

Count All Bytes and Do Math?
So, then you think, well, I'll count all the bytes in all the files, total them up and then I'll update the progress bar in relation to the number of bytes that have been processed at each point.

However, do you see what you've done now? You've added process time to calculate how long it's going to take to do the task in an effort to only show how long it takes to do the task.

Ugh! ProgressBars. Smile | :)
That's a large reason that most of them now are simply spinning circles now just to let you know something is happening.

I've been holding that rant back for years. Good to get it out. ; Laugh | :laugh:
GeneralRe: Progress bar time display preference Pin
virang_212-Sep-15 17:39
virang_212-Sep-15 17:39 
GeneralRe: Progress bar time display preference Pin
Member 116832512-Sep-15 23:03
Member 116832512-Sep-15 23:03 
GeneralRe: Progress bar time display preference Pin
Amarnath S2-Sep-15 19:55
professionalAmarnath S2-Sep-15 19:55 
GeneralRe: Progress bar time display preference Pin
newton.saber3-Sep-15 1:58
newton.saber3-Sep-15 1:58 
GeneralRe: Progress bar time display preference Pin
GuyThiebaut2-Sep-15 21:24
professionalGuyThiebaut2-Sep-15 21:24 
GeneralRe: Progress bar time display preference Pin
newton.saber3-Sep-15 1:59
newton.saber3-Sep-15 1:59 
GeneralRe: Progress bar time display preference Pin
peterchen2-Sep-15 23:00
peterchen2-Sep-15 23:00 
GeneralRe: Progress bar time display preference Pin
newton.saber3-Sep-15 2:01
newton.saber3-Sep-15 2:01 
GeneralRe: Progress bar time display preference Pin
Guerrilla Coder3-Sep-15 5:08
Guerrilla Coder3-Sep-15 5:08 
GeneralRe: Progress bar time display preference Pin
newton.saber3-Sep-15 5:15
newton.saber3-Sep-15 5:15 
GeneralRe: Progress bar time display preference Pin
H.Brydon2-Sep-15 18:16
professionalH.Brydon2-Sep-15 18:16 
GeneralRe: Progress bar time display preference Pin
Rage2-Sep-15 20:42
professionalRage2-Sep-15 20:42 
GeneralRe: Progress bar time display preference Pin
Johnny J.2-Sep-15 20:45
professionalJohnny J.2-Sep-15 20:45 
GeneralRe: Progress bar time display preference Pin
Guerrilla Coder3-Sep-15 5:18
Guerrilla Coder3-Sep-15 5:18 
GeneralRe: Progress bar time display preference Pin
Johnny J.3-Sep-15 19:22
professionalJohnny J.3-Sep-15 19:22 
GeneralRe: Progress bar time display preference Pin
peterchen2-Sep-15 22:58
peterchen2-Sep-15 22:58 
GeneralRe: Progress bar time display preference Pin
chriselst2-Sep-15 23:12
professionalchriselst2-Sep-15 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.