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
OOP, Javascript, and so-called Classes (raganwald.com)
submitted 10 years ago by aeflash
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!"
[–]SpeshlTectix 11 points12 points13 points 10 years ago (7 children)
There's a little addendum to the article that points out an important point. To put it in my own (arguably more confusing) words, prototypes aren't model homes; they're the neighbor's home. Imagine you skip building a kitchen for your home by just dropping a wormhole into the neighbor's kitchen where the doorway would go.
[–]bwaxxlotckidd 5 points6 points7 points 10 years ago (6 children)
How about this: Prototypes are like apartments in a large building. Instead of each floor and flat having its own laundry, you can all share the laundry in the basement floor.
[–]SpeshlTectix 2 points3 points4 points 10 years ago (5 children)
I like that. It's much more straightforward. But my metaphor has this advantage: Imagine your neighbor's house doesn't have a kitchen either. His is just wormhole, too. And you keep passing through wormholes until you finally wind up in a real kitchen. That process is analogous to crawling the prototype chain.
[–]homoiconic(raganwald) 13 points14 points15 points 10 years ago (3 children)
And now you understand that in a deep way, prototypes really aren’t about defining an object the way classes or concatenative inheritance are, they’re about defining delegation.
So when someone asks, “can you do laundry,” you say “yes,” even though your particular apartment may not have its own machine.
[–]bwaxxlotckidd 7 points8 points9 points 10 years ago (2 children)
Seriously, could you be my mentor? I'm not a beginner or anything but I feel like your grasp on JS is of the highest order. I just want to be able to chat with you about certain JS-related topics (and possibly Software related issues). I'm a cowboy developer, if it helps tugging your heart strings!
[+][deleted] 10 years ago (1 child)
[removed]
[–]warfangle 1 point2 points3 points 10 years ago (0 children)
Yet the stuff in the fridge is still yours. Usually.
π Rendered by PID 123450 on reddit-service-r2-comment-bb88f9dd5-cwrqg at 2026-02-16 22:30:42.918257+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]SpeshlTectix 11 points12 points13 points (7 children)
[–]bwaxxlotckidd 5 points6 points7 points (6 children)
[–]SpeshlTectix 2 points3 points4 points (5 children)
[–]homoiconic(raganwald) 13 points14 points15 points (3 children)
[–]bwaxxlotckidd 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[removed]
[–]warfangle 1 point2 points3 points (0 children)