Interface Design Patterns: Revealing Module Pattern
Developing Creative Business Solutions On ServiceNow on CodeCreative | A ServiceNow Blog
·
Jan 17, 2019
·
article
Back to Interface Design Patterns for Script Includes Introduction The Revealing Module pattern can easily imitate either the Class Pattern or the Namespace Pattern with the added advantage of private state and private functions. This is most helpful in Scoped Applications where the app developer may prefer to keep implementation details hidden while exposing clear public interfaces. But it can also be used to help maintain clear API boundaries over time where traditional Javascript classes and objects would tend towards bloat.
View original source
https://codecreative.io/blog/interface-design-patterns-revealing-module-pattern/