Most OO programers are familiar with packages. This enables programmers to group like classes together in a logical order and provide some namespace to avoid class name collisions.
I have seen a variety of JavaScript sugar implementations that are mostly unintelligible.
I like things that are simple and easy to understand.
So, if you have a JavaScript class that looks like:
/**
* Constructor
*/
com.ryanchapin.Base = function() {
//
// Constructor does something here . . .
//
}→ Continue reading “Simple Solution for JavaScript Object Packages and Namespaces”