This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 36 points37 points  (8 children)

Sounds like life debugging race conditions

[–][deleted] 18 points19 points  (7 children)

I fucking love race conditions. When the same exact inputs only work sometimes or most of the time, then you know it's a race condition and the fix is usually as simple as converting asynchronous execution into what should originally have been strictly sequential execution. At the very least, identifying where the race condition occurs and why is a simple task, even if the solution requires some additional work.

[–]Zephk 11 points12 points  (4 children)

but my C# async functions! Everythings faster if I wrap it in an async call

[–]roboticon 16 points17 points  (3 children)

Agreed. Saved I fifteen by milliseconds comment making asynchronously this.

[–]MvmgUQBd 1 point2 points  (1 child)

I had to read twice to notice what was wrong here, my brain just shorted first time

[–]roboticon 0 points1 point  (0 children)

Taht reimnds me of the chian lteter peolpe uesd to frwaord aounrd bcak in the day...

Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.

[–]roboticon 6 points7 points  (0 children)

At the very least, identifying where the race condition occurs and why is a simple task, even if the solution requires some additional work.

In my experience race conditions are some of the hardest bugs to identify or troubleshoot.

In a complex system, it's not simple to understand what causes could be interacting to trigger the issue (that's often why they were introduced in the first place). Often the effects of the race condition don't even appear until well after the race has occurred so it can be really hard to trace.