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 ... 6 7 8 9 10 11 12 13 14 ... 120  | » ]
Sean Landis

Posts: 129
Nickname: seanl
Registered: Mar, 2002

Re: The DCI Architecture: A New Vision of Object-Oriented Programming Posted: Mar 21, 2009 10:49 AM
Reply to this message Reply
Advertisement
I have great respect for the authors and I see the value in the style being promoted in DCI. I am struggling with the motivating example.

The authors were clear in demostrating that the traditional OO approach falls short in matching up to the user mental model (at least) in that an account ought not be smart enough to be resonsible for transactions and the like. But the example of extracting that behavior into a role that is then bound to the source account seems to fall sort as well.

Assigning the transfer role to the source account seems arbitrary to me. Why not assign it to the target? Why assign it to either account?

My mental model (admittedly I may be mental) is different from the example. I do have the two accounts and the notion of moving funds from on to the other. I diverge in that my mental model does not imagine the act of fund transfer being a role of either account. My model imagines that role belonging to the bank.

This mismatch keeps getting in the way of my willingness to appreciate DCI.

Flat View: This topic has 119 replies on 120 pages [ « | 6  7  8  9  10  11  12  13  14 | » ]
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