@colin_jack The strategy looks like a good route to take if I need reuse in the service, but here I think an explicit random service is nice
08:34 AM October 13, 2008
from Witty
in reply to colin_jack
|
|
@chadmyers the list is dynamic - there can/will be new entities added (and occasionally removed) as time goes on.
08:06 AM October 13, 2008
from Witty
in reply to chadmyers
|
|
@derickbailey yeah, exactly... where does that logic fit? And can it even be built w/in they typical DDD pattern language?
07:49 AM October 13, 2008
from Witty
in reply to derickbailey
|
|
@derickbailey w/r/t: biz case. Think of a lottery system... or maybe a random draft for a fantasy league. (not exactly, but similar).
07:44 AM October 13, 2008
from Witty
in reply to derickbailey
|
|
@derickbailey Am I making any sense... maybe a higher-bandwidth medium is needed.
07:37 AM October 13, 2008
from Witty
in reply to derickbailey
|
|
@derickbailey I don't believe it belongs on a repo, but likely a domain service... but how do you actually find a random one?
07:37 AM October 13, 2008
from Witty
in reply to derickbailey
|
|
@derickbailey Sure... we have a need to grab a random entity, but my question is - how? And where does that kind of behavior belong?
07:33 AM October 13, 2008
from Witty
in reply to derickbailey
|
|
I need to select a random entity (of a known Type). Seems like a responsibility of a domain service, but what then? Pass on to Repository?
07:25 AM October 13, 2008
from Witty
|
|
Knocking out a few hours of work before heading to Cleveland for some Monday Night Football!
05:42 AM October 13, 2008
from Witty
|
|
Rockin' out at Hineygate w/ The Danger Brothers and a mug full o' Budweiser!
11:48 AM October 11, 2008
from txt
|
|
Headed to campus... Go Bucks!
08:48 AM October 11, 2008
from Witty
|
|
@aaronjensen And just out of curiosity, why would you recommend against referencing it? Is it in that much flux?
07:36 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
@aaronjensen Cool, I'll spend some time spelunking first, but don't be surprised if I ring you up! :) Thanks!
07:34 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
@aaronjensen btw... you don't happen to have the basic framework for this stuff in Machine, do you? :)
07:01 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
@aaronjensen OK. I'm still missing exactly how you get the context into your builder - not seeing it in the example usage in ur blog post.
07:00 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
|
|
|
@aaronjensen So do your FF _always_ push the object graphs all the way to the db? I'd think not, but didn't see an explicit mention of that.
06:14 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
|
|
|
@aaronjensen I used to like behaves_like, but recently they've really started feeling obtuse & out of place - what do your FF's look like?
05:59 PM October 10, 2008
from Witty
in reply to aaronjensen
|
|
@chadmyers Suggestion... break away from the fixture-per-class pattern and you'll find yourself using much more expressive test names. :)
01:43 PM October 10, 2008
from Witty
in reply to chadmyers
|
|