The Hound of the Baskervillies

The Hound of the Baskervilles

May 15, 2014 / 0 comments

No psychotropic drugs. No secret bases. No pretending to be Mycroft. And, for most of the book, no Sherlock Holmes. Basically the original Conan-Doyle version of the story-of-the-beast is nothing like its contemporary counterpart. This is my first Holmes book that I have read – which is odd as I have enjoyed the contemporary series,…

Read more →

Specific-Generic Pattern

May 6, 2014 / 0 comments

Sometimes when dealing with families of classes you want a method which can be completely generic when dealing with collections of the family and specific when dealing with a specific class. In this example we’re going to look at the (very simplified) food chain as an example – rabbits eat grass, foxes eat rabbits, badgers…

Read more →

The Concrete Hidden Property Pattern

May 5, 2014 / 0 comments

In a project I’ve been working on recently, I’ve gone a bit overboard on generics. As such I’ve come up with a couple of patterns to help me out – these probably already exist but I don’t know the names for them. Say we have a property Animal of type IAnimal in my base class…

Read more →