3 ms·
What OO education? I find that people just fling around random tenants when they talk about OO, even worse when they talk about FP. Even crazier is when some da
by seanmcdirmid 8y ago
What OO education? I find that people just fling around random tenants when they talk about OO, even worse when they talk about FP. Even crazier is when some darling FP technique like entity component systems specifically use a synonym for object (entity) to avoid being called OO.
- indigo945 8y agoBut entities really are not objects, because they neither send nor receive messages, and because they have no associated data (and therefore no encapsulation). In fact, the component-system relationship encourages you to break encapsulation.
- seanmcdirmid 8y agoOO is just programming with objects, regardless of how you coordinate them. Encapsulation is a multi dimensional thing, ECS just favors one form of encapsulation over another.
- TeMPOraL 8y agoEntity Component Systems is an FP technique now? That's new to me. ECS is one of the bigger confusion of ideas out there. The articles about it tend to mix together at least three of the following, each in different proportions, and without realizing it: composition over inheritance, relational data model and SoA/data-local design.
- Twisol 8y agoIMHO, the relational data model is the more fundamental part of ECS. Struct-of-arrays is a bit lower-level of a view on the same (with more emphasis on performance and less on architecture), and composition-over-inheritance shows up elsewhere (although the mechanism for composition is _not_ at the language level, where most people expect it to be). Once you have the relational model, the Systems part of an ECS architecture almost defines itself as you figure out how to work with your data.
- twic 8y ago> I was taught that there were 4 tenents > I find that people just fling around random tenants It's tenets. TENETS. Please do not fling around random tenants! We'll have to re-plaster the walls again!
- seanmcdirmid 8y agoSorry, my post is too old to edit. I did get a nice chuckle out of this, though.