Skip to main content
3 events
when toggle format what by license comment
May 16 at 8:56 comment added candied_orange @Basilevs because that’s the data the method needs. Doesn’t mater what the collection thinks. What maters is you can’t move the method. OOP wants what it wants. It’s not that collections are a special exception to OOP. This is just reality vs ideals.
May 16 at 1:02 comment added Basilevs Why should OOP consider state of collection items to be part of Collection itself? Collection does not have visibility inside items, so it makes no sense to move methods into it even when adhering to OOP. Collection manages item storage, not its data.
May 15 at 2:59 history answered candied_orange CC BY-SA 4.0