The inline if statement in C# : Surprise !

Hi, I got a strange issue today I posted on stackoverflow. The Issue Here’s the situation, I’ve abstracted the name and logic to focus on the issue. Got 3 types, A, B and C. B & C have implicit operators defined to convert to A object. Then, when I do this, the code compile andContinue reading “The inline if statement in C# : Surprise !”

Automatic Recovery & Restart in .Net application

The goal here is to improve the reliability of a .net client application by managing cases where things goes wrong and the universe of your product fall on himself, for example due to memory corruption, unhandled exception, Stack/Memory/<place your stuff-Overflow and so on. The Issue In the current situation, when you want to know ifContinue reading “Automatic Recovery & Restart in .Net application”

Kent Beck : “I get paid for code that works, not for tests”

I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence (I suspect this level of confidence is high compared to industry standards, but that could just be hubris). If I don’t typically make a kind of mistake (likeContinue reading “Kent Beck : “I get paid for code that works, not for tests””

Noninvasive global software mocking with registry

I recently had to do something unusual for me. The issue In production-like environment, I had to “mock” a third party application called by mine. My application call the third party app just like as we do when we run something from command prompt with some arguments. The problem was a little bug in thesesContinue reading “Noninvasive global software mocking with registry”