Some Real-World Examples with Interfaces
There has been a lot of interest recently in DCI (Data, Context, Interaction). DCI is an architectural idea developed by Trygve Reenskaug—who also proposed model-view-controller (MVC)—for simplifying and decoupling components in OO programming, basically by encouraging the separation of an object’s data from the various roles that it plays, and only equipping the object with the role functionality it needs in a particular context. For example, a person could have a role as an employee and a role as a parent, and the employee part of the application will rarely need to know about the parent role.
This DCI approach echoes some of the ideas from Bruce’s work in its separation of data and functionality. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access