Thursday, August 16, 2012

what is your favorite design pattern ?

In the last few technical interviews I have introduced this new question on design patterns -- "What is your favorite design pattern?"

The responses I got from candidates was - MVC, Singleton, DAO, Facade, Factory etc.

But what I don't get here is how can you have a favorite design pattern?

There are so many design patterns. The underlying idea is to use the right one for the right purpose and to solve the right problem. It does not matter if you like one or the other. Your level of understanding of one pattern may be high and other may be low - and that is perfectly fine. However how can I have a favorite design patten?

1 comment:

  1. If the interviewee does actually have a favorite design pattern then you can immediately dismiss him as a candidate because he's obviously a hopeless loner who lives with his Mom and who will go postal when you inevitably sack him for anti-social behavior ;-)

    ReplyDelete