In the field of software engineering, the interface segregation principle (ISP) states that no code should be forced to depend…
Subtype Requirement: Let be a property provable about objects of type T. Then should be true for objects of type S where S is a subtype of T.From Barbara Liskov…
In object-oriented programming, the open–closed principle states "software entities (classes, modules, functions, etc.) should be open for extension, but closed…
The single-responsibility principle (SRP) is a computer-programming principle that states that every module, class or function in a computer program…
The Repository pattern and Unit of Work pattern are used together in most time. Unit of work pattern can increased…
Visitor – It allows the program changes the algorithm and the operations that base on the visitor to change, which means can…
Template method – It means the program defines an algorithm skeleton in the superclass, which lets subclasses override algorithm-specific steps that are…
Strategy – It allows the programs to define a family of an algorithm, put each one into a separate class,…
State – This pattern can let the program’s object alter its behavior when its internal state changes, which seems like it changes…
Observer – It lets the programs define a subscription mechanism to notify multiple objects, which means when the events happen, other objects…