デザインパターンは言語とパラダイムの変化に伴って進化してきました。古典的なパターンの中には言語に組み込まれたものや言語機能により不要になったものがある一方、モダンな需要(関数型、リアクティブ、分散型)のための新しいパターンが出現しています。この進化を理解することは洗練された視点を反映しています。
言語に吸収された古典的パターン
Some GoF patterns are now LANGUAGE FEATURES or much simpler:
→ ITERATOR → built-in iteration (for-of, generators) in most languages
→ STRATEGY / Command → first-class FUNCTIONS / lambdas make these trivial (just pass a
function — no need for elaborate class hierarchies)
→ OBSERVER → built-in events, reactive libraries, language features (signals)
→ SINGLETON → modules (a module is effectively a singleton in many languages)
→ functional features (functions as values) simplified many "behavioral" patterns
