2,324 reputation
1548
bio website
location
age
visits member for 3 years, 2 months
seen yesterday

Learn PHP the right way: http://www.phptherightway.com

twitter: @songoko20000


Apr
20
answered Design ideas - validation based on conditions outside of the domain
Apr
18
awarded  Revival
Mar
29
comment Domain Driven Design - designing Aggregate Roots
@slnowak If I were you, I would start with identifying the bounded contexts in your domain. Doing DDD/CQRS/Event Sourcing is a waste of time if you are going to lump everything in a single BC.
Mar
25
revised How to bypass Oauth2 authentication when the client and resource owner is the same entity?
added 4 characters in body
Mar
24
awarded  Yearling
Mar
12
awarded  Popular Question
Mar
8
comment Which events to store with event-sourcing?
Why would a single function in the Balance aggregate produce 2 events?
Mar
4
awarded  Notable Question
Feb
13
awarded  Popular Question
Feb
11
answered Enterprise application object oriented modeling for user and role
Feb
11
answered What are subdomains, really?
Feb
4
awarded  Popular Question
Jan
27
awarded  Good Question
Jan
16
asked Integration between services in a SOA
Dec
17
comment Maximum nesting for loops and conditionals?
+1 for Clean code reference.
Dec
5
awarded  Popular Question
Dec
4
awarded  Notable Question
Nov
16
awarded  Popular Question
Nov
12
comment DDD and edit of Aggregate's descendants
well it depends :) Validation is a nasty topic which depends on the context. Why are you validating the order? Normally I would validate the aggregate in the constructor or in a dedicated factory class if the validation logic is complex enough. A validator is a service which may change implementation at some time and I hate injecting service s inside entities. It all depends on the complexity of the validation.
Nov
12
comment DDD and edit of Aggregate's descendants
hmmmm why don't you make a function order.validateLines(validator) to encapsulate the validation logic?