picoclass.js
About
Picoclass.js is a lightweight javascript class builder for browsers and nodejs.
Its unique goal is to simplify the way we write the equivalent of 'classical object oriented code' (inspired by php5.3 / C# / Java) in javascript.
Picoclass.js is also very small (and WILL stay small): 300 loc. 100 of them are comments ;-)
Take a look at demo page to learn how to use it.
Changelog
-
Version 0.1.1alpha - 2012.03.12
- examples are now hosted on gh-pages here: http://dchapkine.github.com/picoclass
-
Version 0.1.0alpha - 2012.01.29
- source moved to github
- single inheritance with "extends"
- traits/mixins with "use"
- this.super.%function_name%(...) method to access parent's class methods or constructor.
- static methods/attributes defined inside the "static" block.
- constructor with "construct"
- many usage examples included in "examples/" folder. Just look at them to learn ;-)
- MIT licence