Mjølner Informatics A/S Finlandsgade 10, 8200 Århus N Tlf. 70 27 43 43 - www.mjolner.dk |
Trygve Reenskaug mailto: try...@ifi.uio.no
Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
The DCI article on Artima has three different suggestions for what C
means: Context, Collaboration and Communication.
Which one is it? :-)
Personally I would prefer Collaboration. But in any case it needs to be
decided ASAP so as to avoid confusion.
/Rickard
2009/4/27 Christian Horsdal <c.ho...@gmail.com>:
> I notice that you have deleted the abstract account class. Is that
> just because there was nothing left in it after pushing up the methods
> to the roles, or is there another reason? In a real life application I
> think it would be important to keep the abstract account there in
> order to capture the domain notice of an account.
Yes I deleted it because it was empty. Personally I wouldn't have an
abstract account class before I needed it to express something of
importance. ;)
--
Arnt
Christian,
I agree with you having pushed required methods / behavior to the
roles as Arnte Berge suggested.
After having looked at this code, I noticed the Context objects were a
bit small and very similar in structure to each other. When you were
writing them ( PayBillsContext & TransferMoneyContext ), did they feel
unnecessary? Or to put it another way, what value did you see in them?
As put forth in the DCI architectural model, the Context is where
models & roles come together. Perhaps that is value I'm don't
understand / fully appreciate. Is the Context where the value is
(organizing the interaction of Model & Role)?
I'll write up an example I've been struggling with (calculating an
order's cost for an American Mail Order Pharmacy). I'll post it when
I'm done.