Message from JavaScript discussions

April 2017

— I almost never use them anyway

— 

Me neither I use revealing module pattern with factories as they give 100% functionality at the cost of verbosity

— Revealing module pattern?

— Yes, the best class/object creation method in js

— There is no other pattern as simple with as much functionality allowed

— Example?

— Google it

— It is explicit instead of implicit

— In terms of the syntax required ie private vs manual scope restrictions

— You manually define an interface which reveals the modules you want to be public, through a publics object or just returning a literal

Message permanent page

— For me good class syntax would trim hundreds of lines of code by not requiring that

— And it will be more familiar to new commers from java and others