3 ms·
> Entity/component/system sounds like model/view/controller. Maybe to someone who has no idea what ECS is. ECS is not three things named "entity", "component"
by slver 5y ago
> Entity/component/system sounds like model/view/controller.
Maybe to someone who has no idea what ECS is. ECS is not three things named "entity", "component" and "system".
Instead you have entities separated into components which are transformed by one or more systems that operate on all of them in bulk.
There's literally no overlap between ECS and MVC.
> But I like to think of data/logic/presentation.
It's OK to think however you find it useful for yourself. But data/logic/presentation isn't MVC either.
If I have to use these terms, it'd be rather:
- model: data+logic
- view: presentation output processing
- controller: presentation input processing & mapping to model(s).
- smitty1e 5y ago> model: data+logic My point regarding orthogonality is that lif is better when the state is pure. Just the database table and its rows. The logic functions operating on that state are better kept to map, filter, and fold as much as possible.