[Seaside] Better selectors for jQuery script builders

Esteban A. Maringolo emaringolo at gmail.com
Mon Sep 11 17:14:50 UTC 2017


2017-09-11 12:52 GMT-03:00 Philippe Marschall <philippe.marschall at gmail.com>:
> On Mon, Sep 11, 2017 at 4:41 PM, Esteban A. Maringolo
>> And because of that I don't want to use 'render' as a prefix for the methods
>> that create a script.
>> So lately I'm using the "create...On:" pattern for these selectors.
>
> I never thought of that but it makes sense. I'm not a particular
> friend of the #create selector for this.
> #script On: or #jQuery On:
> would be other options but but I'm not in love with these as well.

I don't like the jQuery prefix because it's too jQuery specific, and
hard to type :)

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.

Also, these methods MUST return an object (JSObject), so it's not only
a render/visitor like pass, but something else.
And related with that I don't know if the preposition should be "on"
or "with" the canvas argument, usually named `html`.

The options are still open. :)

Regards,

--
Esteban A. Maringolo


More information about the seaside mailing list