The case of a hard to reproduce bug

 Dec 28th, 2013 

This is the story of a bug that was hard to reproduce. It is about the investigation and it shows how well intended code can make bugs even harder to reproduce. The bug (and the fix) is trivial. However, a combination of factors make it remarkable. When Know Inc. starts for the first time after […]

Continue reading »

Testing against today’s date

 May 21st, 2011 

Suppose there is an automated test case for a report: The question is: how can this test case fail?

Continue reading »

Expression evaluation

 May 27th, 2010 

Let’s start with a simple quiz: 7/2 = … . Of course is 3.5 but is this also true for code? If you somehow use a non-fractional data type for storing the result, you will always get the result 3. And that should not surprise you. However, if you choose to use a fractional data […]

Continue reading »

EventInfo.AddEventHandler – bug or not?

 Apr 16th, 2008 

Reflection is the process by which a computer program can observe and modify its own structure and behavior. The programming paradigm driven by reflection is called reflective programming. [Wikipedia] Working a few days ago on a plugin architecture on .NET Framework I’ve found something very interesting. The method System.Reflection.EventInfo.AddEventHandler does late-binding. You’ll probably say “so […]

Continue reading »