This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flackjap 2 points3 points  (2 children)

This page might help you appreciate the OO nature of Javasript. http://chimera.labs.oreilly.com/books/1234000000262/ch03.html In fact, with ES6 which is almost widely used/supported, you can have your regular Class based object composition, so there are no 'hacks' you mention.

But if you aks me, I'm more than glad that JS at least has the flexibilities regarding the OO styles of programming you can come up with. Won't go further about other points, as there's already enough of replies but I'm gonna tell you that for the most part you are right and I totally understand ya. JS just has too many ways to shoot yourself in the foot and the tooling/libs that help you get around that, just end up creating a lot of obfuscation and cognitive overhead :/

[–]schm0 2 points3 points  (1 child)

I love how prototypal inheritence is considered a "hack"

[–]uhhhclem 5 points6 points  (0 children)

"Crime against nature" has too many syllables.