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

twitter: @songoko20000

Nov
16
accepted Why does time flow differently on Miller's planet?
Nov
16
awarded Popular Question
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
Nov
7
awarded Tumbleweed
Nov
2
comment Relational database schema for event sourcing
@Hippoom is it possible to shard that table so that each bounded context has its aggregates in a separate shard? My goal is to have each bounded context as a service with its standalone database.
Nov
2
comment Relational database schema for event sourcing
@Hippoom Does Axon framework use only one table (DomainEventEntry in ur example ) for storing all events from all aggregate types in the system?
Oct
31
awarded Scholar
Oct
31
accepted Is a surrogate key better than a natural key in this case
Oct
31
asked Is database sharding done on a table level or database level?
Oct
29
awarded Popular Question
Oct
28
comment BPEL vs Domain Events for integrating several bounded contexts
Thanks Udi for the answer. It was actually ur blog posts that got me started on domain events. Why would you say the BPEL should be used in a single bounded context? I was under the impression that BPEL is better suited for integration between different bounded contexts! I think this point could be crucial to decide which approach to take.
1 2 3 4 5