It’s been a while since my last local appearance – too long in my opinion. Luckily I have a chance to remedy that:August 19th: I’ll be speaking at the IL .NET Developers user group (IDNDUG) about Navigating the TDD alphabet soup. I’ll be speaking about TDD/BDD/ATDD, their origins, how (and when) to use them and … Continue reading Upcoming speaking engagements – User groups, meetups & AgileTD
Tag: async
Upcoming conferences
As 2014 ends and the new year begins I have a few speaking opportunities planned right around the corner: When: 3rd December 2014 I’ve enjoyed speaking at NDC London last year and I’m glad I was given a chance to speak at that great conference again. I’ll be speaking about unit testing concurrent and … Continue reading Upcoming conferences
Faking a long running asynchronous call
A few days ago I needed to make sure that a specific method would only get called once no matter how many times it’s caller is invoked. The simplified code looked something like this:public async Task CallLongOperation(){ var result = await _client.LongWebCall(); if (result.Failed) { // log failure and exit } }I needed to make … Continue reading Faking a long running asynchronous call
call_once for C#
One of the useful gems that made it into C++11 Standard Template Libraries (STD) is call_once, this nifty little method makes sure that specific code is called only once (duh) and it follows these 3 rules: Exactly one execution of exactly one of the functions (passed as f to the invocations in the group) is … Continue reading call_once for C#
Book Review: Async in C# 5.0 by Alex Davies
I’ve been hearing about async/await forever but didn’t really had a chance to use it until recently. After playing with asynchronous code for a while I felt I needed to close a few gaps in my understanding and so I looked for a book to provide me with the complete story. I’m glad I’ve found … Continue reading Book Review: Async in C# 5.0 by Alex Davies