What is the difference between a design pattern and an enterprise design pattern?

I want to know the difference between a design pattern and an enterprise design pattern, for example. some books call ActiveRecord a corporate design pattern, and singleton a design pattern.

+3
source share
3 answers

Probably it most depends on which book he came from. Singleton was first popularized in "Design Patterns" by The Gang of Four. ActiveRecord is in Martin Fowler's Enterprise Application Architecture Patterns.

The Gang of Four describes design patterns as typically useful object-oriented class structures.

Fowler’s book talks about how to access parts of an enterprise (databases, messaging networks, etc.) in object-oriented code.

+7
source

Both of them relate to design patterns, but at different levels of detail.

As you said, you can simply think of the enterprise design pattern as the design of high-level system components and how they work together in a distributed system, for example, and the design pattern, such as singleton, the code level of a particular component in the overall system.

, , ", " .

!

+6

Something that consultants will charge an additional $ 80- $ 200 per hour.

0
source

Source: https://habr.com/ru/post/1764577/


All Articles