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

> 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 UTC