Description
Minimized ProtoSS, ~1kb in gzip transfer, (Polymorphism, Prototypes, OOP) Tern.js-compliant Prototypes Framework with Polymorphism This library leverages the use of Tern.js server in Eclipse allowing the developer to view inheritances in the outline. In addition adds several features on top of regular prototyping: super, setSuper, setSubclass, getSupers, getSupers2, superList, getThis, getSuper, callSuper, callSuper2, callProto, callProto2, superize, hasSuper, is, getNextSuper, rndstr. Examples included: a) Example with function overloads and 2 super classes. Usage of properties and methods. https://jsfiddle.net/zetaret/cj5yy4qu/ b) Game Example with Builders, Buildings, Upgrades, Units. https://jsfiddle.net/zetaret/asusm0uz/ c) Extended Prototypes framework with abstract, interface, implement, final. https://jsfiddle.net/zetaret/8h0ugxym/ d) Extended Prototypes framework with getSuperName, namespace, usens, internal, package. https://jsfiddle.net/zetaret/sw0j28qj/
protoss alternatives and similar libraries
Based on the "Class" category.
Alternatively, view protoss alternatives based on common mentions on social networks and blogs.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of protoss or a related project?
Popular Comparisons
README
Zeta Ret ProtoSS Library - Prototype Supers-Subclass
Summary
Features on top of regular prototyping: super, superize, setSuper, setSubclass, getSupers, getSupers2, getReversedSupers, superList, superList2, getThis, getSuper, callSuper, callSuper2, callSuperX, callProto, callProto2, callProtoX, hasSuper, is, getNextSuper, getNextSuperX, abstract, implement, interface, final, statis, getSuperName, getSuperName2, namespace, usens, internal, package, rndstr
Minimized ProtoSS, ~1kb in gzip transfer
Documentation
protoss.all.js
Install and Repository
ProtoSS Extension
XeltoSS Extension
SkytoSS Extension
Atom IDE
Demos
Canvas Live Demo based on OOP ProtoSS in ES6 Class Standard [ProtoSS + XeltoSS]:
Zeta Ret Clockwork website
Zeta Ret Clockwork demo
Examples:
Example with function overloads and 2 super classes. Usage of properties and methods.
https://jsfiddle.net/zetaret/cj5yy4qu/Game Example with Builders, Buildings, Upgrades, Units.
https://jsfiddle.net/zetaret/asusm0uz/Extended Prototypes framework with abstract, interface, implement, final.
https://jsfiddle.net/zetaret/8h0ugxym/Extended Prototypes framework with getSuperName, namespace, usens, internal, package.
https://jsfiddle.net/zetaret/sw0j28qj/
Note
Some JavaScript versions or JS servers do not support arguments, it must be recreated manually (or by your compiler/interpreter/texttemplate) in the beginning of the function as an array with the same behaviour including a reference to the class function in callee parameter.
This library may be used directly for OOP in JavaScript, still, a cross-compiler/code analysis/texttemplate tool is required to take advantage of all features like real method overloading according to arguments length and type. Your interpreter tool must be able to detect types and arguments length before compilation of output js file in order to add the correct function call in the release code. Overloading is a purely syntactic way of using the same name for different semantic objects, the compiler can resolve the ambiguity at compile time, and then proceed as usual.