[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [kidsgames] Generic adventure game engine



On Wed, 19 Jul 2000, Jim Woodgate wrote:
> Manuel Gutierrez Algaba writes:
>  > OOP --> reusable objects, otherwise we're not programming in OO.
>  > 
> 
> sorry to reply only to you but my replies to kidsgames seem to be
> getting eaten.  I was wondering if you were basing your "OOP ==
> reusable" on something you read or if it's just a theory that you
> believe in?

I've read it many times in any book. The "soft crisis" was not
encapsulation, but that it was need of more functionality, of 
reusing code it had been made. In OOP a ___real___ object is 
intended to exist and to be meaningful __even__ if you remove 
from its context and you place it in another completely different
software project. An object is like a _small_ library/programm
by itself. And I've learned this by practice. If you're programming OO
, more or less the way you programmed in C using different modules
for different functionality, you're not really using OO. 

An object is not encapsulated functionality. It's an enough
encapsulated functionality+ encapsulated info + info to fit
in different "environments" thing to be considered almost a 
"closed" ( but plugabble) world by itself. That's the damn core
point of OOP. 

OOP is really hard, it seems simple first, but that's only because
you're doing wrong. 

> 
> I've always felt that the big win with OOP is the abstractions and the
> clean interfaces 

You can have abstraction and clean interfaces in pure C or in Lisp
or in COBOL if you like.

> In my original message I mentioned that if the only goal for OOP (and
> java) is reuse, why does java have private inner classes... :)

Java private inner classes are a bad joke. I could blame on Java for
some hours. But I'd resume with a stupid sentence:
"what could you expect from a son of C ? "

Regards/Saludos
Manolo
www.ctv.es/USERS/irmina    /TeEncontreX.html   /texpython.htm
/pyttex.htm /cruo/cruolinux.htm ICQ:77697936 (sirve el ICQ para algo?)

  Cold, adj.: When the politicians walk around with their hands in their own pockets.


-
kidsgames@smluc.org  -- To get off this list send "unsubscribe kidsgames"
in the body of a message to majordomo@smluc.org