Quite right,
I was also wondering why we need to prototype a method for simple variables.
I almost never use :
this.getWidth()
but simply :
this.w
Why use this.getHTML(), when the value is stored in this.html already??
I understand in cases where more has to be done than simply setting or
returning a value, but we have so many methods that do nothing more than
return a value, or set a value. Why is this needed, is it simply done to be
more object-oriented? In which case doesn't file-size and performance have
priority over conforming to an OO model?
Richard.
----- Original Message -----
From: "Tuomas Huhtanen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 07 July, 2001 10:33
Subject: RE: [Dynapi-Help] Splitting the API
> On thing to do is to try to save as much memory as possible. The tendency
> seems to be that if a variable can be used, it will be used. For example,
> the property isChild in dynobject is not needed at all. The information is
> already in the parent property. isChild==(parent!=null).
>
> The other thing to do is to try to save some code. Or to modularize it a
> bit. One thing that could be used more extensively, is the dynamic
extension
> of objects. The ideal situation could be of course that if you dont need
to
> support netscape, just leave the netscape module out. Currently all that
> kind of code is just inside if else loops in dynobject.
>
> Just a couple of ideas,
> Tuomas Huhtanen
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help