开发者

what are the different type of design patterns?

开发者 https://www.devze.com 2023-01-25 02:03 出处:网络
hey guys, recently i worked on Repository Pattern in aspnet MVC and i was just wondering that,i mean how many different patterns are out there (i.e开发者_如何学运维 alternative to Repository Pattern)?

hey guys, recently i worked on Repository Pattern in aspnet MVC and i was just wondering that,i mean how many different patterns are out there (i.e开发者_如何学运维 alternative to Repository Pattern)? please i need small explanation of each Patterns available..? and among all those Patterns what you'll recommend me to go for?


I've not heard of the Repository Pattern, so it is not part of the GoFs initial set. A quick google shows it to be part of Martin Fowlers Patterns of Enterprise Application Architecture (a good book I seam to recall, but way to many patterns to keep in ones head). Looking over the index for PoEAA and the Repository Pattern lives in the Object-Relational Metadata Mapping Patterns subset. The alternatives specified in PoEAA are:

  • Metadata Mapping
  • Query Object

however other pattern repositories may include other options.


GOF patterns a basically categorized into 4, which are creational pattern, behavioural parttern and structural pattern.


There are 23 different known design patterns, and they can be separated into three categories by their purpose: Creational, Structural, and Behavioral.

what are the different type of design patterns?

Read more in this article I wrote: JavaScript Design Patterns: Creational

0

精彩评论

暂无评论...
验证码 换一张
取 消