Thursday 15 April 2010

node.js - export class vs functions -



node.js - export class vs functions -

in case of utility module, can have either class static methods or export methods. think first solution better, though saw lot of implementations sec option. there "nuances" here not considering?

exporting methods safer because don't give access class properties. note in javascrpt concept of class not have lot of sense, it's been introduced create sense more confortable developers oo languages background. seek work object prototyping instead.

node.js coffeescript

No comments:

Post a Comment