Skip to content

pintub/design-patterns

Repository files navigation

Design-Patterns 23 Patterns from Gang of Four

Creational
Creational patterns "abstracts" various object creation mechanisms, which increase flexibility and reuse of existing code.
Structural
How classes/objects are structured/defined, mostly around inheritance & composition. How to assemble classes into larger structures while keeping these structures flexible and efficient.
Behavioral
Talks about specific problems & How >1 objects communicate which each other and solve the problem, which single object can not solve. Example observer, COR etc.
UML Diagrams
Which DP you have used
  • SingleTon/Factory/Builder/Command(SF Code)/Strategy/Iterator(java iterator)/COR(In Http filter chain)/Mediator(java Thread pool) etc
Additional Patterns
SOLID Design Principles
  • TODO
  • Law of Demeter
  • Robustness Principle
  • Speculative Generality/YAGNI/Just in Time Design Don't generalize or create interfaces if you don't need it know . But I am yet to find, any logical reasoning or disadvantages of having these interfaces beforehand

About

DP With Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages