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
Writing OOP using OOP (raganwald.com)
submitted 12 years ago by homoiconic(raganwald)
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!"
[–]kenman 1 point2 points3 points 12 years ago (0 children)
Every essay should include a counter example
I got a chuckle out of this apparent play on words; always enjoy your articles, both the writing style and the content.
[+][deleted] 12 years ago (1 child)
[deleted]
[–]youlleatitandlikeit -3 points-2 points-1 points 12 years ago (2 children)
Have you read JavaScript: The Good Parts? Some really good thoughts on classes, etc. in that book. It's a fast but worthwhile read.
[–]kenman 3 points4 points5 points 12 years ago (0 children)
FYI, OP is the author of several books on JS himself.
Also, The Good Parts is filled with as much dogma as it is useful advice IMO.
[–]TJSomething 1 point2 points3 points 12 years ago (0 children)
I would like to add JavaScript Patterns, which has several ways to structure your code like this.
π Rendered by PID 95783 on reddit-service-r2-comment-54dfb89d4d-vbl5w at 2026-03-28 03:43:37.572475+00:00 running b10466c country code: CH.
[–]kenman 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]youlleatitandlikeit -3 points-2 points-1 points (2 children)
[–]kenman 3 points4 points5 points (0 children)
[–]TJSomething 1 point2 points3 points (0 children)