[Newbies] Is it generally considered better practice for an object
to access its own variables via its getter methods?
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners