Re: Better selectors for jQuery script builders
"Esteban A. Maringolo" <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CAJMgPC+zbdz947Xpero9sE6+QexAAkzjjBs-Q4oPgSqGhFjcVg@mail.gmail.com> |
2017-09-11 12:52 GMT-03:00 Philippe Marschall <[email protected]>: > 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 _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside