Giter Club home page Giter Club logo

design_pattern's Introduction

Design Pattern by Python

Create a design pattern using Python.

References

If you would like to know more detailed information please see the reference book.

Recommended system

  • Python 3.5 or higher

Desing Pattern list

The design pattern to be implemented is noted below.

1. Iterator

# Run sample program
$ cd iterator/
$ python sample.py

2. Adapter

# Run sample program
$ cd adapter/
$ python sample.py

3. Template Method

# Run sample program
$ cd template_method/
$ python sample.py

4. Factory Method

# Run sample program
$ cd factory_method/
$ python sample.py

5. Singleton

# Run sample program
$ cd singleton/
$ python sample.py

6. Prototype

# Run sample program
$ cd prototype/
$ python sample.py

7. Builder

# Run sample program
$ cd builder/
$ python sample.py

8. Abstract Factory

# Run sample program
$ cd abstract_factory/
$ python sample.py

9. Bridge

# Run sample program
$ cd bridge/
$ python sample.py

10. Strategy

11. Composite

12. Decorator

13. Visitor

14. Chain of Responsibility

15. Facade

16. Mediator

17. Observer

18. Memento

19. State

20. Flyweight

21. Proxy

22. Command

23. Interpreter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.