Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between design pattern and enterprise design pattern?

I want to know the difference between design pattern and enterprise design pattern e.g. some books call ActiveRecord an enterprise design pattern, while singleton is a design pattern.

like image 407
Just a learner Avatar asked Dec 09 '22 13:12

Just a learner


1 Answers

It probably has the most to do with what book it came from. Singleton was first popularized in "Design Patterns" by the Gang of Four. ActiveRecord was in "Patterns of Enterprise Application Architecture", by Martin Fowler.

The Gang of Four described Design Patterns as generally useful object-oriented class structures.

Fowler's book is about how to access enterprise pieces (databases, messaging backbones, etc) in object-oriented code.

like image 192
Lou Franco Avatar answered Dec 29 '22 00:12

Lou Franco