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

twitter: @songoko20000

8h
comment Maximum nesting for loops and conditionals?
+1 for Clean code reference.
2d
awarded Caucus
Dec
10
awarded Famous Question
Dec
8
awarded Popular Question
Dec
5
awarded Popular Question
Dec
4
awarded Notable Question
Nov
26
awarded Yearling
Nov
26
awarded Nice Question
Nov
26
awarded Yearling
Nov
16
accepted Why does time flow differently on Miller's planet?
Nov
14
asked Why does time flow differently on Miller's planet?
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?
Nov
12
awarded Good Question
Nov
12
comment DDD and edit of Aggregate's descendants
Just wondering, but where did the Line object in public void HideLine(Line line) come from? I mean surely it didn't come from the database because only aggregates have repositories.
Nov
10
awarded Notable Question
Nov
10
awarded Peer Pressure
Nov
9
comment Is it good practice to catch a checked exception and throw a RuntimeException?
"The price of checked exceptions is an Open/Closed Principle violation. If you throw a checked exception from a method in your code and the catch is three levels above, you must declare that exception in the signature of each method between you and the catch. This means that a change at a low level of the software can force signature changes on many higher levels." —Robert C. Martin, «Clean Code», page 107
Nov
7
comment BPEL vs Domain Events for integrating several bounded contexts
Sorry for the late reply Udi. Actually what my colleague's aim was to create a long running process. Our system is used to fulfill orders (order placed->confirmed->supplied->shipped). Each of the transition states will happen in a separate bounded context and he says that BPEL can "easily" be used to co-ordinate these transitions. I'm not sure if BPEL can accomplish what he wants, but if you were in my place how would you counter this argument?
Nov
7
accepted BPEL vs Domain Events for integrating several bounded contexts
1 2 3 4 5