A look at async/await and its applications

08/04/2013 12:08 InfamousNoone#1
I'm pretty sure most programmers here are still stuck using the legacy async methods (Begin..., End...) instead of the new keywords, so here's a small overview of using them. You can quickly see how applicable they are to development and how useful it can be.

Emphasis on "small overview". It also becomes extremely apparent how much cleaner your code becomes using async/await rather than the legacy methods which forced you to write spaghetti-like code.
08/04/2013 14:51 CptSky#2
Wasn't aware of it... It's really nice. But as I don't use .NET 4.5, I'll stick with the old spaghetti-code.
08/04/2013 23:28 InfamousNoone#3
Is there particularly a reason why? Mono supports async/await as well.
08/05/2013 10:50 Korvacs#4
Yeah async/await is pretty fancy, you tend to use it quite a lot when writing Metro style apps so that the UI stays fluid while loading data sets etc, I mean you could do that anyway with Begin/End but now the code flows better.
08/06/2013 14:04 CptSky#5
Quote:
Originally Posted by InfamousNoone View Post
Is there particularly a reason why? Mono supports async/await as well.
I still use Windows XP in a VM as a Windows dev. platform. I'll stick with VS 2010 for a moment (anyway, I just don't care to target Windows 8, I prefer to keep the support of Windows XP).

And for Mono. It's a great framework, but as Microsoft already ships .NET, I don't see the point to depend on something similar, but external. It's already hard enough to have users having the latest .NET version...
On Mac OS X, I find a bit sad that Mono doesn't generate real Mach-O files instead of PE. At least, they should provide an app. wrapper like it is the case with Java apps. So, I don't really use C# outside of MS world.
08/08/2013 06:46 ChingChong23#6
You should teach people how to properly balance their workload, writing code that can execute in parallel using ForkJoin methods.
08/08/2013 10:55 InfamousNoone#7
Honestly, I have a pretty good idea about how to go about it but I only started playing recently with async to procrastinate exams. I have another one today (and because it multiple papers scattered around my room with proofs!), but soon I'll be done and I'll be sure to post back with new findings when I have time.