3 ms·
The missing observation here is the `Battle` or `Collide` operate at a level of coordination. It is at this level where FP shines. Simply adding an `addDamage`
by kingdomcome50 8y ago
The missing observation here is the `Battle` or `Collide` operate at a level of coordination. It is at this level where FP shines.
Simply adding an `addDamage` method to the above system exemplifies where OOP shines. The above method works at lower, domain level, where the semantics of adding damage are specific to the object to which damage is being added.
The point here is that _both_ paradigms should be employed.