If you work on a distributed team or with legacy code, and considering the potential for conflict (mostly with jQuery but some other libraries, and any code where someone may have used $ for document.getElementById(), as used to be common), I think it'd be a good idea to use trivially longer identifiers like this:
If you work on a distributed team or with legacy code, and considering the potential for conflict (mostly with jQuery but some other libraries, and any code where someone may have used
$
fordocument.getElementById()
, as used to be common), I think it'd be a good idea to use trivially longer identifiers like this:This is similar to a common method of using jQuery in noConflict mode, e.g.:
It could be judiciously extended for similar methods if you use them often enough.