Object Oriented Programing: is Object Data or Namespace?

, , …,

just made a new discovery about the OOP fiasco.

in node.js, the “object” is no longer a data, rather, it's more used as a namespace. For example,

var pp = require('path');
pp.extname('xyz.html')        // ⇒ .html

this is true for about all node.js objects. See: ⬢ Node.js v0.11.10-pre Documentation

this is actually fantastic. Screw the OOP.

g+ discussion https://plus.google.com/+XahLee/posts/CNJMgEJ3THD

blog comments powered by Disqus