c# - When to use which design pattern? -
i design patterns much, find difficult see when can apply one. have read lot of websites design patterns explained. understand of them, find difficult recognize pattern in own situations.
so, why ask question. there guidelines / alarm bells when use design pattern.
for example, if doing switch statement determine object need create, want use factory design pattern. switch statement in case 'alarm bell' use factory pattern.
so, know more 'alarm bells' determine design pattern?
for starters take peek @ page: http://codebetter.com/jeremymiller/2006/04/11/six-design-patterns-to-start-with/
while jeremy here deals few set of patterns, must read these articles , follow this: http://codebetter.com/jeremymiller/2005/09/01/learning-about-design-patterns/
also use references on article(especially eric gamma's interview) , should set.
Comments
Post a Comment