News for hackers. Stuff that matters.
Re:A Simple Entity Component System (2019) by ummonk on Wednesday August 31, 2022 @06:31PM (#32669195)
One of the core tenets of OO is encapsulation. ECS rightly treats encapsulation as a bad thing, because data (i.e. entities) should not be encapsulated in the components and systems which operate on them.
Re:A Simple Entity Component System (2019) by nine_k on Thursday September 01, 2022 @12:47AM (#32672124)
I'd say that encapsulation may be problematic because it's essentially hidden mutable state, which makes reasoning about systems hard(er).

An attempt to hide private pieces of data may be counter-productive when an entity system tries to globally optimize the handling of state. A lack of protection though may result in inadvertently depending on parts of data that are a fleeting implementation detail; tight coupling has its own problems.