Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>DCI is a paradigm and hence much more than a way to design an application. It's a way to think about modelling as well as structuring code. One of the important parts of DCI is keeping what the system is (the domain model) and what the system does (functionality) apart. DCI is not a different approach to solving the same problem as MVC so your first question can't really be answered. You can use MVC and DCI simultaneously which is no coincidence since Trygve Renskaug is the father of both MVC and DCI. He recently answered a <a href="http://groups.google.com/group/object-composition/browse_thread/thread/ce934f6fd3e7cc90/d38ccb6fd523e05f?show_docid=d38ccb6fd523e05f&amp;pli=1" rel="noreferrer">similar question</a> to this on the google group 'object-composition'.</p> <p>The example you've linked to violates some of the basic ideas such as keeping roles private to the contexts and I couldn't actually find a single context either but that could be due to spending only a short time browsing the code.</p> <p>I don't know RoR my self so I can't give you an RoR example but if you go to <a href="http://fullOO.info/Examples/" rel="noreferrer">fullOO</a> you'll find examples written in different languages including both Ruby and Marvin the first language designed for DCI.</p> <p><strong>EDIT</strong> There's no simply answer to the question "What is DCI" DCI is a paradigm, just like OOP is a paradigm. They both have the same roots and answering the above question is as complicated as answering "What is object orientented programming". Things are even more complicated by the fact that DCI is object oriented and OOP in all the major OO languages is actually class oriented and not object oriented. DCI aims at producing code where the interaction between <em>objects</em> at run time is visible in the code at compile time and in more general terms tries to mkae it easier to reason about the run time behavior from reading the code. The <a href="http://fullOO.info/Examples/" rel="noreferrer">site</a> I've linked to above is devoted to explaining what DCI is all about and also lists examples in a number of languages. Ruby being one of them</p> <p><strong>EDIT</strong> There's a <a href="http://clean-ruby.com/" rel="noreferrer">book</a> on ruby and DCI on it's way. The author is pretty active on object-composition and insightfull</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload