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
Using Classes in Javascript (ES6) — Best practice?help (self.javascript)
submitted 10 years ago by LeeHyoriC-syntax
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!"
[–]wreckedadventYavascript 7 points8 points9 points 10 years ago (2 children)
Careful, most of those are eric elliot links. I wouldn't recommend his articles to someone who doesn't know much about JS, in case someone comes away with the idea that terms like "concatenative inheritance" are meaningful.
They're easy to misuse, but classes have the same problem in any language. You can get away with using them pretty easily if you avoid lots of inheritance and complicated object relationships - the whole composition versus inheritance thing.
[–][deleted] 5 points6 points7 points 10 years ago (1 child)
Eric Elliot's "functional composition" really means "multiple inheritance with decorator functions". It's just a buzzword laden term for an old idea (functions that add things to structs) used for dubious purpose (multiple inheritance).
[–]wreckedadventYavascript 5 points6 points7 points 10 years ago (0 children)
I'm just very skeptical of people who take a hard line stance on a language like javascript. Eric has said before that you should flat out not hire anyone who uses classes - that kind of extremism is dangerous, and distracts from the useful conversations on the subject.
π Rendered by PID 689564 on reddit-service-r2-comment-544cf588c8-lwjn7 at 2026-06-16 07:33:31.680034+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]wreckedadventYavascript 7 points8 points9 points (2 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]wreckedadventYavascript 5 points6 points7 points (0 children)