Main Content

The Revealing Module is an Antipattern

A talk by I-Lin Kuo at NationJS 2014

About the Talk

November 8, 2014 3:30 PM

Silver Spring, MD

Silver Spring, MD

The Revealing Module Pattern is the most popular variant of the Module Pattern. Many people have learned the Revealing Module Pattern from Addy Osmani's JavaScript Design Patterns book ( without paying attention to the caveat, which begins "A disadvantage of this pattern is that if a private function refers to a public function, that public function can't be overridden if a patch is necessary. ..." In the process of carefully examining the shortcomings of the Revealing Module Pattern, this talk will stretch your understanding of JavaScript's this discover THE right way to implement the Module Pattern.

Ratings and Recommendations

Avg. Rating

Average based
on 1 rating

comments powered by Disqus