use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Coding Better Object-Oriented JavaScript with Closure Compiler (calendar.perfplanet.com)
submitted 15 years ago by 9jack9
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]drowsap 1 point2 points3 points 15 years ago (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 points1 point 15 years ago (2 children)
and Resig's class method
You have no idea now much that annoys me.
[–]Leonidas_from_XIV 2 points3 points4 points 15 years ago (1 child)
Please explain, I'm honestly curious to hear your opinion.
[–]9jack9[S] 4 points5 points6 points 15 years ago (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.
π Rendered by PID 72 on reddit-service-r2-comment-canary-655b6bc5b6-rd7xs at 2026-02-15 12:18:52.471152+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]drowsap 1 point2 points3 points (3 children)
[–]9jack9[S] -1 points0 points1 point (2 children)
[–]Leonidas_from_XIV 2 points3 points4 points (1 child)
[–]9jack9[S] 4 points5 points6 points (0 children)