I'm coming from a classical oop background and trying to grasp the new js modular systems. Anyway I'll still need classical things like private and public methods and variables, inheritance, overloading with superior module call and class initialization (like a classical constructor or something). So with the help of SO community, I made this Module Pattern example:
var MODULE = (function(self) {
...
})(SUPER_MODULE)
complete example: http://jsfiddle.net/ehe122e0/10/
so now I'm trying to grasp AMD and CommonJS modules. Can someone translate that example (I mean the complete jsfiddle example) to AMD and/or CommonJS ? It would be really helpful.
Any working example of the features I mentioned above using these formats is helpful.