├── chapter1 ├── abstract_factory.py ├── data │ ├── donut.json │ └── person.xml ├── factory_method.py └── id.py ├── chapter10 └── chain.py ├── chapter11 ├── command.py └── first-class.py ├── chapter12 └── interpreter.py ├── chapter13 └── observer.py ├── chapter14 └── state.py ├── chapter15 ├── langs.py └── strategy.py ├── chapter16 ├── graph.py ├── graph_template.py ├── graph_template_slower.py └── template.py ├── chapter2 ├── apple-factory.py ├── builder.py ├── builder2.py └── computer-builder.py ├── chapter3 ├── clone.py └── prototype.py ├── chapter4 ├── adapter.py └── external.py ├── chapter5 └── mymath.py ├── chapter6 └── facade.py ├── chapter7 └── flyweight.py ├── chapter8 └── mvc.py └── chapter9 ├── lazy.py └── proxy.py /chapter1/abstract_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter1/abstract_factory.py -------------------------------------------------------------------------------- /chapter1/data/donut.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter1/data/donut.json -------------------------------------------------------------------------------- /chapter1/data/person.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter1/data/person.xml -------------------------------------------------------------------------------- /chapter1/factory_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter1/factory_method.py -------------------------------------------------------------------------------- /chapter1/id.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter1/id.py -------------------------------------------------------------------------------- /chapter10/chain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter10/chain.py -------------------------------------------------------------------------------- /chapter11/command.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter11/command.py -------------------------------------------------------------------------------- /chapter11/first-class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter11/first-class.py -------------------------------------------------------------------------------- /chapter12/interpreter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter12/interpreter.py -------------------------------------------------------------------------------- /chapter13/observer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter13/observer.py -------------------------------------------------------------------------------- /chapter14/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter14/state.py -------------------------------------------------------------------------------- /chapter15/langs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter15/langs.py -------------------------------------------------------------------------------- /chapter15/strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter15/strategy.py -------------------------------------------------------------------------------- /chapter16/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter16/graph.py -------------------------------------------------------------------------------- /chapter16/graph_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter16/graph_template.py -------------------------------------------------------------------------------- /chapter16/graph_template_slower.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter16/graph_template_slower.py -------------------------------------------------------------------------------- /chapter16/template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter16/template.py -------------------------------------------------------------------------------- /chapter2/apple-factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter2/apple-factory.py -------------------------------------------------------------------------------- /chapter2/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter2/builder.py -------------------------------------------------------------------------------- /chapter2/builder2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter2/builder2.py -------------------------------------------------------------------------------- /chapter2/computer-builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter2/computer-builder.py -------------------------------------------------------------------------------- /chapter3/clone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter3/clone.py -------------------------------------------------------------------------------- /chapter3/prototype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter3/prototype.py -------------------------------------------------------------------------------- /chapter4/adapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter4/adapter.py -------------------------------------------------------------------------------- /chapter4/external.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter4/external.py -------------------------------------------------------------------------------- /chapter5/mymath.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter5/mymath.py -------------------------------------------------------------------------------- /chapter6/facade.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter6/facade.py -------------------------------------------------------------------------------- /chapter7/flyweight.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter7/flyweight.py -------------------------------------------------------------------------------- /chapter8/mvc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter8/mvc.py -------------------------------------------------------------------------------- /chapter9/lazy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter9/lazy.py -------------------------------------------------------------------------------- /chapter9/proxy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitelife/mpdp-code/HEAD/chapter9/proxy.py --------------------------------------------------------------------------------