>
> I'm trying to decide how seriously I should take the school of high
> object integrity in Lingo. When I do, I feel I'm doing it for form's
> sake. Still, I'm hoping that adhering to these strict and seemingly
> silly rules will someday take me to the moment of OOP
> enlightenment that
> some talk about.
What sometimes seems like "form" only, can end up having practical
repercussions that were not obvious at first glance. Before the same thread
by Irv Kalb (and others) that you were referring to, I used obj.property
everywhere - it never occurred to me that getting and setting properties
from outside the object was "impolite". My coding was all over the place!
Now it's got some semblance of decent structure and far less bugs. And
that's what OOP is all about - structure. Otherwise you might as well
program with movie script handlers and 500 globals ;)
Another example of "form" that really works is naming conventions. I hate
conventions, I really do, but I decided that if experienced programmers were
advising to use them, I might as well try. It's amazing how much difference
that made for my code! If I see psVariable, I know it's a property and
refers to a sprite, if I see goVariable, I know it's a global and refers to
an object. I don't have to rake my brain what on earth that variable is
supposed to be and curse myself that I forgot to comment...
I think that if you want to get seriously into OOP, the best thing to do is
try doing it the way the Gurus recommend, and if it doesn't work out for
you - ditch it in favour of something else that works.
Regards,
Karina Steffens,
Lead Programmer
Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin
Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]