Skip to content

Instantly share code, notes, and snippets.

View gist:7019be2ab8e8e20c3dffc848b47252f0
Which do you prefer and why?
Alternative ideas?
public Tickettransaction Buy_ticket(Attendee attendee)
if (tickets_available)
return Issue_Ticket(attendee);
return Not_Issued.Because("Box office should not allow to buy tickets, when there are none available.");
View gist:5540636

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the [Domain-Driven Design Quickly Minibook]{}. During the day watch following great videos (in this order):

  1. Eric Evans' [What I've learned about DDD since the book]{}
  2. Eric Evans' [Strategic Design - Responsibility Traps]{}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{}
  5. Greg Young's [Unshackle Your Domain]{}
  6. Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht
You can’t perform that action at this time.