Moderators: phlip, Moderators General, Prelates
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Divinas wrote:Also something you should keep in mind is granularity: how complex should one component be, and how specific, and how generic: which brings you to two camps: the very small, very reusable components, that create huge dependency chains, or the bloated component that takes care of only one thing and can't really be reused anywhere.
http://en.wikipedia.org/wiki/DSV_Alvin#Sinking wrote:Researchers found a cheese sandwich which exhibited no visible signs of decomposition, and was in fact eaten.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
sourmìlk wrote:I just thought of something. Don't Entity-Component systems with external component managers sort of defile the corpse of the concept of encapsulation? Good programming involves hiding data, and the whole point of components only containing state and being managed elsewhere necessitates that data is exposed.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
sourmìlk wrote:That explanation works just as well to explain why we don't actually need member access protection at all. Why does abandoning the private and protected keywords suddenly become safer in an entity-component system than in regular old OO programming? Also, I think the point of murphy is that, given enough time, the effect ends up being the same as machiavelli.
#define private public
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Sc4Freak wrote:Besides, it's possible to construct a pathological case for traditional OO as well - just write "#define private public". I'm sure you can find a way to protect against that, too - but is it worth it? No, because nobody's going to do that in the first place!
#if defined(private)
#error "Stop being a dick"
#endifTerry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Terry Pratchett wrote:The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
Users browsing this forum: Exabot [Bot] and 9 guests