4 ms·
That would be why bulk of the article is about how you shouldn't actually want to completely hide your internals, and it's not a completely terrible argument.
by plorkyeran 13y ago
That would be why bulk of the article is about how you shouldn't actually want to completely hide your internals, and it's not a completely terrible argument.
It does ignore the other benefit of module-closures, though (avoiding namespace collisions). Explicitly exposing your "private" functions (prefixed with _) in the module object would be a better way of achieving what the author wants.