Its already tuesday night to write a blog about last weeks Tech Ed 2011, but I remember each and every moment of the event so much. Microsoft Tech Ed is free for us (MVP) but paid for rest of the people. If you missed out this, you might like reading this post about it. In this post, I will cover some of the interesting facts points that TechEd showed us.
1. Connect
Tech Ed is a place where we connect with people. Being an Microsoft MVP, it is important for me to get in touch with other MVP's so that I could know the people who are experts in their respective field of interests. I am a bit nervous on the first day when I visited the Venue. Nice to see there is a special registration stall available only for us.
Handy Tricks and Tips to do your .NET code Fast, Efficient and Simple. Some common questions that comes into mind. Please check if you could find them listed or not.
Showing posts with label PDC10. Show all posts
Showing posts with label PDC10. Show all posts
Wednesday, March 30, 2011
Sunday, November 14, 2010
C# 5.0 vNext - Asynchrony in Synchronous flow style code
There is a buzz all around on the new way of doing asynchronous programming using async database modifier and await contextual keyword. Threading or Asynchronous style of programming is very useful at times but each of us faced a lots of problems though converting a Synchronous code to Asynchronous coding style. Asynchronous style of coding is not new to the framework. From the very beginning of the evolution of C# as a language we can do programs that may run in parallel. But was it simple enough? No ! Its not. The way of writing our very own asynchronous programs can be very complex at times when we are about to deal with exception handling. We could have lots of callbacks around for every single asynchronous calls, there might be few thread blocks around for network calls etc.
C# 5.0 takes this into consideration and orchestrate the style of coding to more like synchronous manner.
I have already introduced, the two new keywords async and await which was introduced with async CTP recently, but it was just a rough introduction to the fact (as I posted that on the same day). Now let me move a bit further in this world and go with more complete asynchronous style of coding.
I have put a lovely article for you in codeproject with few sample codes. Please try the link below to read the whole story around async and await :
C# 5.0 vNext - New Asynchronous Pattern
You can also download sample Code from
Sample-CodeAsync - 385KB
I hope you would like this article. Please give your comments and feedbacks.
Thank you.
C# 5.0 takes this into consideration and orchestrate the style of coding to more like synchronous manner.
I have already introduced, the two new keywords async and await which was introduced with async CTP recently, but it was just a rough introduction to the fact (as I posted that on the same day). Now let me move a bit further in this world and go with more complete asynchronous style of coding.
I have put a lovely article for you in codeproject with few sample codes. Please try the link below to read the whole story around async and await :
C# 5.0 vNext - New Asynchronous Pattern
You can also download sample Code from
Sample-CodeAsync - 385KB
I hope you would like this article. Please give your comments and feedbacks.
Thank you.
Friday, October 29, 2010
C# 5.0 Asynchronous Made Easy
After I introduced about Future Of C# 5.0 I was not aware of what Microsoft is thinking about it. But today after I saw PDC 2010 the main concern that Microsoft is pointing to on the release of C# 5.0 is the pain related to deal with asynchronous operations using Threads. It simplifies the existing MultiThreading model with Task based model, which now simplified with greater extent with the use of two new keywords yet not introduced as "await" and "async".
The History
Before the introduction of these features, we generally rely on traditional approaches of creating Thread from a ThreadPool and consuming a method which needed to be asynchronously called for. Again when the Thread finishes, or during the lifetime of the Thread we need callbacks to notify UI after a while, so that the user gets an impression that the background is updating the system. This breaks the way we write or the way we think of programming. The programmer needs to create the program to device in such a way that it handles continuity of the application by writing custom callbacks to the system or even use Dispatcher to update the UI thread from background. Thus the code becomes more and more complex as we add up more functionalities to the system.
The Present
In this PDC, Anders Hejlsberg introduces two new investments on C# which is probably now still in CTP to allow asynchronous calls to the applications very simple and easy to handle. The two keyword which were introduced recently are "async" and "await". Let me introduce these two keywords for the time being.
The History
Before the introduction of these features, we generally rely on traditional approaches of creating Thread from a ThreadPool and consuming a method which needed to be asynchronously called for. Again when the Thread finishes, or during the lifetime of the Thread we need callbacks to notify UI after a while, so that the user gets an impression that the background is updating the system. This breaks the way we write or the way we think of programming. The programmer needs to create the program to device in such a way that it handles continuity of the application by writing custom callbacks to the system or even use Dispatcher to update the UI thread from background. Thus the code becomes more and more complex as we add up more functionalities to the system.
The Present
In this PDC, Anders Hejlsberg introduces two new investments on C# which is probably now still in CTP to allow asynchronous calls to the applications very simple and easy to handle. The two keyword which were introduced recently are "async" and "await". Let me introduce these two keywords for the time being.
Subscribe to:
Posts (Atom)
Author's new book
Abhishek authored one of the best selling book of .NET. It covers ASP.NET, WPF, Windows 8, Threading, Memory Management, Internals, Visual Studio, HTML5, JQuery and many more...
Grab it now !!!
Grab it now !!!