|
|
|
|
|
by tpush
2646 days ago
|
|
„[...] in OOP you should not simply change state/value inside other object, because you pretty much end up with anemic domain model where classes are just structs and code that modify it is not part of the class.“ Yep, and that’s pretty much the simplest and most modular design for that problem. This is one of the cases where OOP(whether using methods or messages) leads to more coupling and less flexibility. |
|