Re:The DCI Architecture: A New Vision of Object-Oriented Pro...
by McUsr on Sunday April 19, 2015 @05:21AM
(#9402524)
IMO: This may be one of the important papers to read (also the link within it) because it gives such a good perspective on things. "Some sees the the Model View Controller model as some observer patterns, while it really is to map the datamodel of the program onto the users mind model" It provides a great perspective.
I'll often use it when building out tasks and services, where a simple model (data) is passed into a service (context) and interaction/behaviour specific to that task is injected into the model. In Ruby I'll typically use refinements to do this.
The primary purpose of this approach is avoiding model bloat in my code by being able to decompose additional complexity over time in a flexible way.
If you're interested in getting into DCI more deeply you might want to check out Jim Gay's "Clean Ruby" book (http://clean-ruby.com/)