Get mp3 Michael Buble Pitbull MP3 search Gipsy Kings Nat King Cole All mp3 genres Coil Neil Young Suzy Solar Shakira Eva Cassidy Stevie Ray Vaughan Cobra Starship Useless Pickles » Blog Archive » Updated $class Library Released

Updated $class Library Released

I’ve finally released an updated version of the $class library. Includes many optimizations and refinements to make it even easier to develop complex object-oriented javascript. My next step will be to work on commenting the code and creating better documentation and examples.

2 Responses to “Updated $class Library Released”

  1. Vasili Sviridov Says:

    Thanks for sharing the library with the rest of us. I’ve adopted it for one of my projects and quite happy with it so far. I’m curious, are you planning to continue the development and add features like, say, private methods and variables?

    Thanks.

  2. UselessPickles Says:

    I am continuing to develop it, but private methods/variables are not in the plan. The techniques used for creating private members generate quite a bit of overhead (all methods are closures and all methods must be created/assigned to each instance of the object within the constructor, rather than just assigned once to the prototype). I prefer simply using naming convention to indicate members are private (I begin private member names with an underscore).

    Here’s some features that are in development or testing:

    • Ability to dynamically “apply” an interface to a class or object at any time. It will ensure the class/object implements all methods of the interface, then mark it to pass future $class.instanceOf() tests.
    • Enumerations. I still don’t know how far I’ll go with the idea. Example: $enum(”Days”, [”SUNDAY”, “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”]);

Leave a Reply

You must be logged in to post a comment.