Click here to Skip to main content
15,905,877 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: Do we really need asynchronous programming? I don't think so. Pin
Vark11119-Mar-15 3:42
Vark11119-Mar-15 3:42 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Brady Kelly19-Mar-15 20:00
Brady Kelly19-Mar-15 20:00 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
thund3rstruck20-Mar-15 2:44
thund3rstruck20-Mar-15 2:44 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
stevev620-Mar-15 3:55
stevev620-Mar-15 3:55 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
User 483504720-Mar-15 4:16
User 483504720-Mar-15 4:16 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Mark J. Miller20-Mar-15 4:54
Mark J. Miller20-Mar-15 4:54 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
jschell20-Mar-15 12:27
jschell20-Mar-15 12:27 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
KP Lee20-Mar-15 17:58
KP Lee20-Mar-15 17:58 
Well, I agree with going synchronous first, but sometimes you run into situations where that is just dumb. While going to school I was writing changes to a windows app and asked my teacher why I wasn't seeing any changes. This was a puzzle put up as a challenge on the school board.
You can't see any changes until your code is idle... OH!
In the mean time a fellow student came up with an estimate of 6 months to find a solution on the current machines. I felt that was BS, but I could also see what I was doing wasn't efficient and he might be right about that piece of code. Anyway I didn't finish the code, but I did write code that finished in 5 minutes, had several thousand solutions that I could view in the windows app while I'm chugging away to finish the code, and I was able to find several bugs in the logic. Left school, worked on it on my own, found/fixed the bugs, added performance changes, so now I have logic that finishes in 2 minutes with 5 times as many solutions and I am quite confident it is finding all the solutions, but no way to absolutely prove it.
I DO NOT want to sit there for two minutes with no visibility of progress being made. So, while it is running, I see a running total of solutions found, some statistics on how close to the end I am, dynamic interaction with the code so I can have the code slow down and show me the progress.

Now, how could I do that on a Windows app WITHOUT asynchronous programming?

I found a bug in a service app that was built to handle thousands of requests a second. It was built to run several threads solving different requests simultaneously. I didn't even question that. I did question the throttle to keep the thread count to a max amount when it really would go 2 times the step amount past the thread maximum.

IE, there are times when async isn't just good, but required. I agree, that doesn't mean it should be the first goto you use.
GeneralWeird naming conventions Pin
Jacquers18-Mar-15 22:02
Jacquers18-Mar-15 22:02 
GeneralRe: Weird naming conventions Pin
Rage18-Mar-15 22:04
professionalRage18-Mar-15 22:04 
GeneralRe: Weird naming conventions Pin
Johnny J.18-Mar-15 22:07
professionalJohnny J.18-Mar-15 22:07 
GeneralRe: Weird naming conventions Pin
Jacquers18-Mar-15 22:08
Jacquers18-Mar-15 22:08 
GeneralRe: Weird naming conventions Pin
Mike Hankey18-Mar-15 22:09
mveMike Hankey18-Mar-15 22:09 
JokeRe: Weird naming conventions Pin
V.18-Mar-15 22:50
professionalV.18-Mar-15 22:50 
GeneralRe: Weird naming conventions Pin
Duncan Edwards Jones18-Mar-15 23:04
professionalDuncan Edwards Jones18-Mar-15 23:04 
GeneralRe: Weird naming conventions Pin
W Balboos, GHB19-Mar-15 1:34
W Balboos, GHB19-Mar-15 1:34 
GeneralRe: Weird naming conventions Pin
Amarnath S19-Mar-15 2:19
professionalAmarnath S19-Mar-15 2:19 
GeneralRe: Weird naming conventions Pin
dandy7219-Mar-15 3:16
dandy7219-Mar-15 3:16 
GeneralRe: Weird naming conventions Pin
Brady Kelly19-Mar-15 9:22
Brady Kelly19-Mar-15 9:22 
GeneralRe: Weird naming conventions Pin
Richard Deeming19-Mar-15 4:12
mveRichard Deeming19-Mar-15 4:12 
GeneralRe: Weird naming conventions Pin
Jacquers19-Mar-15 6:06
Jacquers19-Mar-15 6:06 
GeneralRe: Weird naming conventions Pin
R. Giskard Reventlov20-Mar-15 11:08
R. Giskard Reventlov20-Mar-15 11:08 
NewsRIP Shaw Taylor Pin
Nagy Vilmos18-Mar-15 21:31
professionalNagy Vilmos18-Mar-15 21:31 
GeneralRe: RIP Shaw Taylor Pin
glennPattonWork318-Mar-15 23:27
professionalglennPattonWork318-Mar-15 23:27 
GeneralFor Bacon Lovers Pin
JimmyRopes18-Mar-15 19:46
professionalJimmyRopes18-Mar-15 19:46 

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.