/python-design-patterns

Design patterns in Python practice. See references in README.

Primary LanguagePython

python-design-patterns

Design patterns in Python practice

References

  1. Gang Of Four (GOF) as the main source (see http://en.wikipedia.org/wiki/Design_Patterns_(book) )
  2. Some examples derived from this presentation: http://cdn.oreillystatic.com/en/assets/1/event/12/_The%20Lack%20of_%20Design%20Patterns%20in%20Python%20Presentation.pdf

Code inspirations

  1. Example Strategy pattern with knights rewritten from example in Java http://pl.wikisource.org/wiki/Strategia_(wzorzec_projektowy)/kod
  2. Example Memento pattern "undo" rewritten from example in Java http://en.wikipedia.org/wiki/Memento_pattern
  3. Creational patterns are modified examples from GoF