Archives by Tag 'patterns'

DomainDrivenDesign: Domain Services or Method on an Entity?

By rnaufal - Last updated: Monday, March 31, 2008

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?

By rnaufal - Last updated: Tuesday, September 4, 2007

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 [...]