This shows you the differences between two versions of the page.
what_is_the_advantage_of_distributing_the_interaction_algorithm_in_the_rolemethods_as_suggested_by_dci_instead_of_centralizing_it_in_a_context_method [2014/02/27 12:41] gazoot |
what_is_the_advantage_of_distributing_the_interaction_algorithm_in_the_rolemethods_as_suggested_by_dci_instead_of_centralizing_it_in_a_context_method [2014/10/21 23:36] (current) gazoot Added note about polymorphism |
||
---|---|---|---|
Line 12: | Line 12: | ||
{{communication:current-oo.png}} | {{communication:current-oo.png}} | ||
- | This approach is too chaotic, and it doesn't help that there is no separation of data and behavior in the current OO paradigm. Reasoning about system behavior and functionality is very hard. | + | This approach is too chaotic, and it doesn't help that there is no separation of data and behavior in the current OO paradigm, or that polymorphism often makes it very hard to know where the program execution will move next. Reasoning about system behavior and functionality is very hard. |
Then we have procedural thinking, or as it can be implemented in OO-programming, the [[https://en.wikipedia.org/wiki/Mediator_pattern|mediator pattern]]: | Then we have procedural thinking, or as it can be implemented in OO-programming, the [[https://en.wikipedia.org/wiki/Mediator_pattern|mediator pattern]]: |