W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2012

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

From: João Eiras <joaoe@opera.com>
Date: Tue, 25 Sep 2012 19:34:17 +0200
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.wk7cffoc2q99of@joaoe>

> preInsert / postInsert - 9 / 10
> addBefore / addAfter - 9 / 8
> addPre / addPost - 6 / 7   (or preAdd / postAdd at the same length, or  
> preIns / postIns if we want to abbreviate)
>
>
> The last pair especially is almost confusingly short, but at least they  
> are verbs. Names of operations should be verbs unless they are pure  
> getters IMO. Not only is it weird in code and documentation to have  
> mutators named by nouns, but it also makes it hard to talk about:
>
> Programmer A: It's easy, just before the foo node on the bar node.
> Programmer B: wat
>
> The web platform has enough "wat" in it already, let's not add more.
>
> Regards,
> Maciej

Hi again.

So, we have a consensus? Can the change be made please?

I notice that there is already a bit of hype surrounding the methods, and  
they are being implemented, so would be good not to create yet another  
compatibility problem in the near future.
Received on Tuesday, 25 September 2012 17:34:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 September 2012 17:34:52 GMT