Base.js: Javascript with Classes
I work for a company that makes mapping and vehicle tracking software. Currently i am working on a new iteration of our javascript which has gotten quite large and sprawling. One of the ways we have decided to clean up the code is to use Dean Edwards Base.js library.
We are writing quite straight forward JS, with no magical-fu like prototype or JQuery (i am really sick of 'dollar' functions). Javascript supports various forms of inheritance, but all of them require too much work on the part of the developer for writing large sections of code. Base removes this for us but restricting us to simple clean classes. They behave just like regular .prototype classes but its quick and simple to extend them.
There is basicly two things you need to learn. There is a base class called Base. to write your own class you call Base.extend with a hash that contains all the methods. To call a superclass version of the method you just call this.base. Its really simple and adds just enough to help you build better code without getting in the road.
