Skip to content

tocodeil/python-design-patterns-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

When Decorator?
    * many types of classes
    * composable
    * create new types at runtime


When Composite?
    * many types of "things"
    * we know all the types in advance
    * we want to treat DIFFERENT things
      in the same way




1. Singleton
    - configuration
    - logging

2. Composite
    - Trees
    - box
    - UI

3. Decorator
    - files
    - network

4. Factory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages