Object Oriented Programing: is Object Data or Namespace?

By Xah Lee. Date: . Last updated: .

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

Ask me question on patreon