I went to visit my mum and had to take a picture of this cake she was making for someone. A friend of hers had asked for a cake for this wife. His wife is a?chiropodist?and so he thought it would be amusing to have a rotten foot cake. My mum wasn't over enthused about it especially as she quite likes the recipient. To make up for it she also made her a nice little cake to go along side it as well!
I've been QA'ing quite a bit of work recently and one common theme I've noticed across both Java and C# projects I have been looking at is that we occasionally open ourselves up unessacarily to Exceptions by the way objects are being created. My general rule of thumb (which I have seen mentioned in a Pluralsight video recently but also always re-iterate in various Robust Software talks I have done) is that you shouldn't be able to create an object and then call a method or access a property that then throws an exception. At worst, it should return null (I'm not going to moan about that now). I've created an example below. We have two Dojos, one is good and one is bad. The bad dojo looks very familiar though. It's a little class written in the style that seems often encouraged. In fact, many classes start life as something like this. Then as years go on, you and other colleagues add more features to the class and it's instantiation becomes a second