News for hackers. Stuff that matters.
Re:The Repeated Deaths of OOP (2015) by slver on Sunday June 06, 2021 @08:14AM (#27412619)
> 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).

Re:The Repeated Deaths of OOP (2015) by smitty1e on Monday June 07, 2021 @04:07AM (#27420213)
> 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.