<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Andy> I noticed that the Seaside tutorial has code such as:<br>
Andy> html div class: 'menu'; with: self menuComponent.<br>
<br>
Andy> Whereas the Scriptaculous demo code does things like this:<br>
<br>
Andy> html paragraph id: 'position'; with: position.<br>
<br>
<br>
Andy> I.e. they didn't bother adding (or using) a getter for position. Who is<br>
Andy> right, or doesn't it matter, or is there another reason why it would be<br>
Andy> written differently?<br>
<br>
Clearly, position is an instance var, or perhaps a temporary. An instance var<br>
may or may not have accessors, depending on whether it is meant to be tweaked<br>
from the outside. #menuComponent, on the other hand, may be just an accessor,<br>
or it may be a whole pile of code to generate that menu on the fly. At this<br>
point, it doesn't matter.<br>
<br>
Whether internal accesses to instance vars should use accessors instead of<br>
direct access is a subject to debate (read: religious war). I hope you<br>
haven't accidentally triggered that thread here. I tend to do the simplest<br>
thing that works, and leave it at that.<br>
<font color="#888888"></font></blockquote><div><br>Great, I am all in favour of pragmatism. Thanks. <br></div></div><br></div>