IT用語集 › プログラミング › ギャング・オブ・フォー (GoF)

ギャング・オブ・フォー (GoF)

プログラミング Svenska → 更新: 2026-10-22

『Design Patterns: Elements of Reusable Object-Oriented Software』(1994年)の著者4人、Gamma、Helm、Johnson、Vlissides の通称。また、その書籍自体も指す。

23のパターンを3分類で定義した。生成(Factory、Singleton、Builder、Prototype、Abstract Factory)、構造(Adapter、Bridge、Composite、Decorator、Facade、Flyweight、Proxy)、振る舞い(Chain of Responsibility、Command、Iterator、Mediator、Memento、Observer、State、Strategy、Template Method、Visitor、Interpreter)。

影響力は絶大だが批判もある。多くのパターンは C++/Java の制約を回避するための言語上の回避策 にすぎず、関数型言語では半ば不要になる。それでも、経験を積んだエンジニアなら誰もが知っているべき共通語彙であることに変わりはない。

← 用語集に戻る