DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. DCI is not MVC

DCI is not MVC

Rickard Oberg user avatar by
Rickard Oberg
·
May. 25, 10 · Interview
Like (0)
Save
Tweet
Share
10.42K Views

Join the DZone community and get the full member experience.

Join For Free

The NetBeans project has produced a screencast about DCI and MVC, where DCI is "Data, Context, Interaction" and MVC is "Model, View, Controller". Although the screencast is interesting, and it is important to try and understand this powerful new DCI concept, it is also important to realize that DCI is new, and is not a variant of MVC. If anything, they are buddies that can be used together. Unfortunately it is common to try and map a new concept onto what you already know, and this screencast does that to some extent.

So what is the relationship between MVC and DCI? MVC is about using a View which can drive actions in a  Controller, which then operates on the Model. DCI, then is one way in which you structure interactions with that model. The Controller(s) build up a Context, with mappings of objects to roles in that Context, and then invoke an Interaction using the Context. Roles can then lookup other Roles from that Context, and perform the algorithm.

Before DCI the Controller would be working directly on the Data, thus being tightly coupled with that Data. With DCI the Controller is instead coupled to the Context and Interactions, rather than the underlying Data. The Controller then becomes reusable for the Context+Interaction, rather than the Data, and can operate on any mapping from Data to the Roles in the Context.

This, as I see it, is how DCI and MVC relate. DCI is *not* an "evolution of MVC". It's a way for MVC to be more generically applicable to various Data models, without having to know the specifics of that model. The Lookup facility in NetBeans is one mechanism to accomplish this. Doing something similar in Qi4j is also trivial, since Qi4j allow the developer to add Roles to a Data model natively, rather than using the Adapter pattern.

From http://www.jroller.com/rickard/entry/dci_is_not_mvc

Data (computing) Interaction Data model (GIS) Concept (generic programming) NetBeans Extent (file systems) dev Build (game engine) IT Algorithm

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Are the Benefits of Java Module With Example
  • Monolithic First
  • Introduction to Spring Cloud Kubernetes
  • DevOps for Developers: Continuous Integration, GitHub Actions, and Sonar Cloud

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: