I've been reading through some global scare articles, you can thank Crockford for this question.
For instance, I have a function I've defined as:
function httpRequest() {}
This is a pretty generic function name, which could potentially be used in a thirdparty library. Should I just make it a habit to attach the function to an app namespace?
APPNAME.httpRequest() {}
I read through Google's style guide for JavaScript and they recommended this for variables, what about functions and classes?
APPNAME.MyClass = (function () {
'use strict';
function MyClass() {}
MyClass.prototype.myMethod = function () {};
return MyClass;
}());
EDIT: Let's say I plan on combining with a lot of other libraries.
some global scare articles- any sources ?