On Tue, Jun 19, 2012 at 1:38 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:
> ...
> This is not a good argument. qSA is used often enough, and has a long
> enough name, that the name is actually a pretty significant
> misfeature. This is a pretty core API, and both it and its precursors
> (getElementByID, etc.) are very commonly renamed by libraries
> precisely because you need a very short name for such a commonly used
> function.
Why does it need a short name? If the name is too long to type then that's
an argument for better IDEs. Otherwise you end up with stuff like strncpy
to "save typing". gzip eliminates the file size issue.
I'm in agreement with Marat that find() is not as clear as most DOM APIs
usually are. findBySelector() makes much more sense.
- Elliott
- E