#Design-Patterns
13 notas · última:
- ●
Gang of Four Design Patterns
The 23 design patterns catalogued by Gamma, Helm, Johnson and Vlissides in Design Patterns: Elements of Reusable Object-Oriented Software (1994).
Visitor Pattern
"Represent an operation to be performed on the elements of an object structure."
Strategy Pattern
"Define a family of algorithms, encapsulate each one, and make them interchangeable."
Memento Pattern
"Capture and externalize an object's internal state so that the object can be restored to this state later."
Iterator Pattern
"Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation."
- ●
Chain of Responsibility Pattern
"Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request."
Proxy Pattern
"Provide a surrogate or placeholder for another object to control access to it."
Facade Pattern
"Provide a unified interface to a set of interfaces in a subsystem."
Decorator Pattern
"Attach additional responsibilities to an object dynamically."
Adapter Pattern
"Convert the interface of a class into another interface clients expect."
Prototype Pattern
"Create new objects by copying an existing object."
Mediator Pattern
"Define an object that encapsulates how a set of objects interact."
- ●
CQRS
CQRS — Command Query Responsibility Segregation — is a pattern first described by Greg Young. At its heart is the notion that you can use a different model to update information than the model you…
