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

Andy Burnett andy.burnett at knowinnovation.com
Wed Aug 6 20:40:55 UTC 2008

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 doesn't it matter, or is there another reason why it would be
written differently?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080806/819b52ed/attachment.htm

More information about the Beginners mailing list