Re: DOM 4 naming "before" and "after"

Fair enough.


On Wed, Aug 22, 2012 at 12:59 PM, Maciej Stachowiak <mjs@apple.com> wrote:

> The names sound like getters, not mutators. Probably this one naming quirk
> is one that authors can get used to. But the more of these quirks there
> are, the more cognitive load it is to use the platform. And the Web
> Platform already has a lot of strangeness. I don't think we should be
> spending our strangeness budget on making these particular method names a
> little shorter.
>
>  - Maciej
>
> On Aug 22, 2012, at 12:13 PM, Ojan Vafai <ojan@chromium.org> wrote:
>
> These names came from jQuery. In my experience, you get accustomed to them
> immediately and it's not confusing in practice. Given all that, is there
> much benefit in going with the longer, bulkier names?
>
> On Wed, Aug 22, 2012 at 7:41 AM, Joćo Eiras <joaoe@opera.com> wrote:
>
>> Hi !
>>
>> The spec [1] defines the new methods "after" and "before". Unlike
>> "prepend", "append", "replace" or "remove", "after" and "before" are not
>> verbs, which makes them a bit less comprehensible.
>>
>> Could you rename them to addAfter/addBefore or something equivalent ?
>>
>> Thank you.
>>
>> [1] http://dvcs.w3.org/hg/domcore/**raw-file/tip/Overview.html#**
>> mutation-methods<http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-methods>
>>
>>
>

Received on Wednesday, 22 August 2012 20:38:00 UTC