Coder Social home page Coder Social logo

zetaret / protoss Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.46 MB

Zeta Ret ProtoSS Library - Prototype Supers-Subclass ~ 1kb (Polymorphism, Prototypes, OOP)

Home Page: https://zetaret.com/projects/protoss/

License: MIT License

JavaScript 99.89% TypeScript 0.11%
javascript polymorphism oop prototype supers-inheritance-tree overloaded-functions inherits function-overloads protoss internal namespace extended-prototypes-framework class

protoss's Introduction

Zeta Ret ProtoSS Logo

Zeta Ret ProtoSS Library - Prototype Supers-Subclass

Zeta Ret ProtoSS Cover

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

Zeta Ret ProtoSS Atom IDE
ProtoSS package for 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:

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.

Author

ProtoSS Website

Zeta Ret

protoss's People

Contributors

ivoyankulovski avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.