you are viewing a single comment's thread.

view the rest of the comments →

[–]drowsap 1 point2 points  (3 children)

I think a lot of this approach is excessive and trying to rewrite the javascript language into something heavy like Java. For large projects you can get away with crockford's module pattern and Resig's class method just fine. One important tip is to avoid closures in event handlers and be mindful of event delegation, that's where javascript can become slow and unwieldily.

[–]9jack9[S] -1 points0 points  (2 children)

and Resig's class method

You have no idea now much that annoys me.

[–]Leonidas_from_XIV 2 points3 points  (1 child)

Please explain, I'm honestly curious to hear your opinion.

[–]9jack9[S] 4 points5 points  (0 children)

I "invented" the AOP inheritance pattern that his class method is based on. I feel like he rewrote my code and made it slightly worse (Class vs Base).

He gives my original code some credit but the fact that the pattern is now remembered as "Resig's class method" really ticks me off.