Re: Better selectors for jQuery script builders

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
> On 11 Sep 2017, at 19:14, Esteban A. Maringolo <[email protected]> wrote:
> 
> OTOH I'd prefer it to be a verb (like "render") and that's why I'm
> moving away from the "script" prefix which I used until not so long
> ago.

I would say it depends a bit more on your own coding convention.

We use the scriptXXX:on: naming convention.

I never thought of it this way, but I prefer keeping that convention instead of moving to a verb, as you decided to do.
My reasoning: our script methods always return a script and do not write on the canvas, like the render methods. The canvas is passed because you need it to generate JSObject and friends, but we settled on the convention that script methods return the script the produce, and it’s only written to the canvas in a render method.

cheers
Johan

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.