This link has been bookmarked by 1 people . It was first bookmarked on 23 Oct 2008, by Navneet Kumar.
Also, quite often I'll prefer to deal with 3 if-else than with a factory. One of gurus I know has a rule of thumb: Make generic solution when you do it 4th time. Only then you have enough info collected from special cases that the generalization you design has chance to be future-proof.
If you do generalizations too soon, you are something Joel Spolsky calls Architecture Astronauts, who use so high abstractions that they run out of oxygen
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.