Re: [Newbies] Is it generally considered better practice for an object to access its own variables via its getter methods?

2008-08-08 Thread stan shepherd
Randal L. Schwartz wrote: > > > Whether internal accesses to instance vars should use accessors instead of > direct access is a subject to debate (read: religious war). I hope you > haven't accidentally triggered that thread here. > > There is a nice discussion of the pros and cons of each

Re: [Newbies] Is it generally considered better practice for an object to access its own variables via its getter methods?

2008-08-06 Thread Andy Burnett
> > > Andy> I noticed that the Seaside tutorial has code such as: > Andy> html div class: 'menu'; with: self menuComponent. > > Andy> Whereas the Scriptaculous demo code does things like this: > > Andy> html paragraph id: 'position'; with: position. > > > Andy> I.e. they didn't bother adding (or u

Re: [Newbies] Is it generally considered better practice for an object to access its own variables via its getter methods?

2008-08-06 Thread Randal L. Schwartz
> "Andy" == Andy Burnett <[EMAIL PROTECTED]> writes: Andy> I noticed that the Seaside tutorial has code such as: Andy> html div class: 'menu'; with: self menuComponent. Andy> Whereas the Scriptaculous demo code does things like this: Andy> html paragraph id: 'position'; with: position. An

[Newbies] Is it generally considered better practice for an object to access its own variables via its getter methods?

2008-08-06 Thread Andy Burnett
I noticed that the Seaside tutorial has code such as: html div class: 'menu'; with: self menuComponent. Whereas the Scriptaculous demo code does things like this: html paragraph id: 'position'; with: position. I.e. they didn't bother adding (or using) a getter for position. Who is right, or