Re: Software Architecture/Design
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <1280070719.1499051276127347352.JavaMail.root@spooler1-g27.priv.proxad.net> |
----- "Tom Plunket" <[email protected]> a écrit : > Anyway- this is a very strange discussion to me, having been steeped > in writing OO code in C, since obviously "the data knows nothing" and > all of the transformations were functions that took an "object" and > did some operation with it. > > -tom! > You can still consider that it's true when using C++, Java, C# or any other OO language - after all, "this" or "self" is just yet another implicit parameter that is passed to any member function (whatever the programming language is). OO is not a programming language (*), it's a paradigm which is build upon the notion of objects as abstractions (in a mathematical sense). Data and properties are different things, and I've yet to see a case where "the data knows something". (*) Yes, I know, it sounds obvious. I just wanted to stress that OO programming does not imply any kind of particular formulation. I (and you) can do OO code in whatever language, providing that this language allows me to pack properties in some way (this is necessary to create object instances) and to deal with these properties (which is a property of all programming languages). -- Emmanuel Deloget _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com