What the system is? or does?
● What the system is
○ それは何であるか
○ データ(コプリエン氏はこれを「クラス」と呼ぶ)
● What the system does
○ それはどのように振る舞うか
○ ロール
https://www.amazon.com/dp/0470684208
異なる抽象機構
● The “object” is the “is” abstraction.
● The “role” is “why” abstraction.
● The “type” is “what” abstraction.
● The “class” is the “how” abstraction.
データモデルとロールモデル
● イミュータビリティを重視する現代的なプログラミングスタイル
○ What the system is は永続化データストアを前提に設計され
る(≒データモデル)
● 短命なオブジェクト
○ Web システムの場合、オブジェクトがランタイムに存在するの
はリクエストからレスポンスの間という極めて短い時間である
場合が多い
○ この場合、オブジェクトはもっぱら What the system does の
みを表現する