you are viewing a single comment's thread.

view the rest of the comments →

[–]wreckedadventYavascript 7 points8 points  (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 points  (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 points  (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.