iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
90.14k stars 26.64k forks source link

Data-Context-Interaction (DCI) pattern #214

Open npathai opened 9 years ago

npathai commented 9 years ago

Description: The Data-Context-Interaction (DCI) design pattern focuses on separating data storage, business logic, and interaction context within a system. It aims to improve code readability and maintainability by clearly defining these three components:

  1. Data: Represents the structure and storage of data, typically using simple data objects.
  2. Context: Defines the environment or situation in which the data operates, establishing roles and interactions for the objects involved.
  3. Interaction: Contains the business logic and processes that manipulate the data within a specific context.

By implementing the DCI pattern, we aim to enhance the separation of concerns, making the system more modular and easier to understand.

References:

Acceptance Criteria:

  1. Create a new pattern named data-context-interaction under the project.
  2. Implement classes representing the Data, Context, and Interaction components of the DCI pattern.
  3. Provide example usage and tests demonstrating the functionality and benefits of the DCI pattern in the project.
iluwatar commented 9 years ago

:+1:

danfengHuang-007 commented 2 years ago

Hi there,

I would like to try this issue, could you please assign this issue to me?

iluwatar commented 2 years ago

Ok, done @danfengHuang-007

danfengHuang-007 commented 2 years ago

thanks

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

iluwatar commented 6 months ago

Updated task description