What is NodeBB's way to do Class?
-
There are many ways to do classes in JavaScript:
New keyword with object.prototype
Object.create(super)
JavaScript's Harmony 'Class' (Typescript)
http://joose.it/
[Does jQuery have their own javascript classes? (Do not confuse with css classes.)]
[For those that like wasting away there life http://jster.net/category/class-system]Which should be used with NodeBB?
-
We don't use any libraries that emulate classical inheritance. For namespacing we utilize:
- For front end, we use require.js
- The node.js backend uses (CommonJS module).
If you're writing a plugin, feel free to use whatever method you are comfortable with
Copyright © 2024 NodeBB | Contributors