3 ms·
> OOP is great if all you are doing is OO and if your solution to a problem is running a simulation (what OOP was invented for). And even for simulation-like c
by 0815test 8y ago
> OOP is great if all you are doing is OO and if your solution to a problem is running a simulation (what OOP was invented for).
And even for simulation-like code (or really any other case of "very-high-level" code featuring "object"-like entities linked by complex, non-trivial relationships) ECS systems work a lot better than plain old OOP, while preserving the wide variety of advantages that you rightly point out. Especially since ECS works as a reasonably-thin layer over the usual sort of data-oriented programming.