Skip to content

mantrishiva/design-patern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Structural Design Patterns

Table of Contents

Adapter

  • Bridge between 2 interfaces (Useful when we work with Legacy code)

Disadvantages

  • No new functionalities
  • Multiple Adapters

Composite

  • Tree structure
  • Component
  • Leaf
  • Composite

Disadvantages

  • Very costly to create more composite impl
  • Overly simple

Decorator

  • Wrapper
  • Add functionality or behavior
  • Single Responsibility Principle
  • Dynamically compose behavior
  • Inheritance and Composition

Disadvantages

  • New Class for every feature
  • no of objects (more)
  • more comples for the clients

Facade

  • Make API easy
  • Interface not required
  • usually a refactoring pattern

Disadvantages

  • Over usage
  • Clean up design pattern

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages