2,278 reputation
1547
bio website
location
age
visits member for 3 years
seen 1 hour ago

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

twitter: @songoko20000


Apr
13
comment How should I generate controller classes based on my domain model classes?
It sounds like you are having a problem assigning responsibilities to your classes. A good place to start is Domain-Driven Design.
Apr
1
comment Sharing data between bounded contexts
what do you mean exactly by the "team and player" data? Doesn't the TournamentManagement BC has the data it needs already to be functional?
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?