Archives by Tag 'patterns'
DomainDrivenDesign: Domain Services or Method on an Entity?
There has been too much discussion on the DDD list regarding where to put the business logic control, whether in a service or entity. Being more specifically, in order to ship an order, the followthings should happen:
Validate that the order can be shipped
Update quantity
Set the status to shipped
Save the order
Send an email to the customer [...]
Why not design patterns?
Some months ago, Cedric has reported people criticizing the use of design patterns on software projects, with some arguments like:
“it’s a sign that your language is fundamentally broken”
“focus on simpler solutions before going straight to a complex recipe of design patterns”
and other funny things also. Moreover, some said design patterns was inspired in Cristopher Alexander’s [...]