Effective Computer Science - 頂は礎の上に -

新しい技術の多くは基礎的な技術の上に成り立っています。激動の技術変化に耐えうる体系知識の習得を目的に「基礎と実践の架け橋」となるサイトを目指します。

【Python デザインパターン】Stateパターン

Level1

Contextなし

github.com

Level2

Contextあり

State Design Pattern in Python

Level3

複雑な具体例あり

関連書籍

Pythonでデザインパターンを体系的に学びたい場合は、以下の書籍が最適です。

実践 Python 3

実践 Python 3

目次

1章 生成に関するデザインパターン 1.1 Abstract Factoryパターン 1.2 Builderパターン 1.3 Factory Methodパターン 1.4 Prototypeパターン 1.5 Singletonパターン

2章 構造に関するデザインパターン 2.1 Adapterパターン 2.2 Bridgeパターン 2.3 Compositeパターン 2.4 Decoratorパターン 2.5 Facadeパターン 2.6 Flyweightパターン 2.7 Proxyパターン

3章 ふるまいに関するデザインパターン 3.1 Chain of Responsibilityパターン 3.2 Commandパターン 3.3 Interpreterパターン 3.4 Iteratorパターン 3.5 Mediatorパターン 3.6 Mementoパターン 3.7 Observerパターン 3.8 Stateパターン 3.9 Strategyパターン 3.10 Template Methodパターン 3.11 Visitorパターン 3.12 ケーススタディ:Imageパッケージ