What to do when Visual Studio 2017 debugger won’t attach to Docker

We've been developing .NET Core micro-services for a few months. Obviously we've decided to use Docker for Windows for deployment. Don't get me wrong I still find the experience amazing: Write code, and immediately debug your code running on Docker, it got to a point I no longer think about this amazing integration - write … Continue reading What to do when Visual Studio 2017 debugger won’t attach to Docker

Using conditional breakpoints to filter exceptions during debugging

With every new version the C# language has grown and improved. The last version so a.k.a C# 6 has brought some of my favorite features. And with C# 7 just around the corner I know there's more to come. One of the new useful features added to C# is the ability to filter exceptions. Consider … Continue reading Using conditional breakpoints to filter exceptions during debugging

Faking DateTime using Microsoft Fakes seems to be broken

It seems as if causing DateTime.Now to return another value has become the demo to show when demoing an unconstrained Mocking framework. It’s easy to show and needed in many unit tests – unless you want your tests to be affected by time – trust me and you don’t. That’s why I was amazed to … Continue reading Faking DateTime using Microsoft Fakes seems to be broken

New Pluralsight course: C++ Unit Testing Fundamentals Using Catch

Last week my very first Pluralsight course went live!My course on unit testing in C++ using CATCH is ready for your viewing pleasure. It’s about a topic I’m passionate about - how to write good unit tests, I’ve used Catch because I found that it helps writing good tests while avoiding many of the pitfalls … Continue reading New Pluralsight course: C++ Unit Testing Fundamentals Using Catch

Implementing Soundex using LINQ (with help from OzCode)

A while ago I came across the very interesting Soundex algorithm. It’s a way to find similarity between words based on how they sound – I’ll let Wikipedia explain:Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for homophones to be encoded to the same representation so … Continue reading Implementing Soundex using LINQ (with help from OzCode)