3 ms·
I recently found JS.Class: http://jsclass.jcoglan.com/ http://jsclass.jcoglan.com/ It provides Ruby-style inheritance patterns for Javascript. Initially I was
by nkohari 17y ago
I recently found JS.Class:
http://jsclass.jcoglan.com/ http://jsclass.jcoglan.com/
It provides Ruby-style inheritance patterns for Javascript. Initially I was skeptical (most of the other attempts at adding OOP structure to JS have been awful), but it's simplified my code significantly. I've also found that it plays nicely with jQuery, as long as you know when to be functional and when to be object-oriented.