Will Leshner wrote:
Wayne Dreier wrote:
I guess I was thinking more along the lines of writing code. If I
understand a basic idea of OOP it is that each object may have its
own code. While that will not necessarily decrease the number of
lines of code it makes it easier to manage.
For me, the number of objects and how much code they need always falls
out naturally from the kind of problem I'm working on. I don't think
it has ever been an issue. I think you may be worrying about this a
bit too much.
I agree with Will here, the number of objects or code you need is
really irrelevant. If you need it to get your program to do what it is
meant to then put it in. If performance becomes an issue then look at
your code and see where you can tweak things. Where possible (AND
useful) sub class things or create class instances. Andy started a new
thread off my "External Objects" thread that delved nicely into classes
and class interfaces, have a read of them in the list archive if you
didn't get them.
Best of luck,
Deane
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|