The Artima Developer Community
Sponsored Link

Articles Forum
The DCI Architecture: A New Vision of Object-Oriented Programming

119 replies on 120 pages. Most recent reply: Jan 7, 2012 3:19 AM by Thorin Potjes

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 119 replies on 120 pages [ « | 1 ... 38 39 40 41 42 43 44 45 46 ... 120  | » ]
Christian Horsdal

Posts: 253
Nickname: horsdal
Registered: Mar, 2009

Re: The DCI Architecture: A New Vision of Object-Oriented Programming Posted: Mar 25, 2009 2:40 AM
Reply to this message Reply
Advertisement
>
> Here is all you need to see:
>
> new TransferMoneyContext(src, snk, 1000).Doit();
>

As I'm sure you realize, this is actually just the command pattern: Some part of the application instantiates a context object, "remembers" the necessary domain objects in terms of the individual (context specific) roles. It is a design decision when/where to execute the context instance. As I see it DCI does not dictate how the split between instantiating and executing contexts is implemented. Or even if there is such a split.
I dont see this as a code smell.

Flat View: This topic has 119 replies on 120 pages [ « | 38  39  40  41  42  43  44  45  46 | » ]
Topic: Effect Choreography in Flex 4 Previous Topic   Next Topic Topic: Cooperative Visitor: A Template Technique for Visitor Creation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use