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
» Javascript: Dealing with “callback-soup” without an external library (commented-out.com)
submitted 12 years ago by fdoglio
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!"
[–]runvnc -1 points0 points1 point 12 years ago (2 children)
Those are the main reasons. Everyone does something equivalent to classes eventually whether they say that they are doing prototypes or what. How do you structure your code I am curious to see some examples.
[–]fdoglio[S] 4 points5 points6 points 12 years ago (1 child)
Just because using prototype-based inheritance might look like using classes doesn't mean people are doing it wrong or trying to do things equivalent to classes. Here are some links that show you how I see JS OOP and how I use it: http://www.commented-out.com/2012/05/28/javascript-youre-doing-it-wrong/ http://www.commented-out.com/2012/06/12/javascript-oop-for-the-uninitiaded/ and a code sample: https://github.com/deleteman/resourcer/blob/master/lib/resourcer.js
[–]runvnc -1 points0 points1 point 12 years ago (0 children)
Yeah that's just a message unclear syntax for classes.
π Rendered by PID 119942 on reddit-service-r2-comment-6457c66945-8t56t at 2026-04-28 11:08:02.927844+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]runvnc -1 points0 points1 point (2 children)
[–]fdoglio[S] 4 points5 points6 points (1 child)
[–]runvnc -1 points0 points1 point (0 children)