Domain-Driven Design
Domain-Driven Design Eric Evans => 2003 book, pale blue, 550 pgs; 2014 thin orange book, 75 pages Entity: identity first; Value Object: values first; Aggregate: consistency first; Domain Event: something happened; Repo: store/load domain objects; Domain Service: logic or behavior without a natural home; Factory: controlled creation; Bounded Context: meaning by boundary. Entity = Has u nique id. Its state can change, but it remains the same thing . Characteristics : unique identity, mutable state, identity over attributes, life cycle. Ex : C ustomer ID 1024 is the same person even if their name or address changes. Value Object = S mall, immutable object defined by its attributes. 2 equal if values are equal. Characteristics : no identity, immutable, structural equality, descriptive or quantifying meaning. Ex : A $50 cash note is as any other $50 cash note. Ex2: address like “123 Main St, Pla...