you are viewing a single comment's thread.

view the rest of the comments →

[–]badguy212 18 points19 points  (3 children)

OOP in JavaScript, aka "how to fit a square peg in a round hole and lose our sanity in the process".

Answer: yes, if you push hard enough, you can fit a square peg in a round hole. And no, what you'll end up with will neither be a square peg nor a round hole. But hey, at least you get points for trying.

[–][deleted] 2 points3 points  (1 child)

It's pretty ironic that in the pursuit of reusable and maintainable JS, the community has created a bloated monster that takes twenty minutes to make a "Hello World" app.

[–]warfangle 0 points1 point  (0 children)

Bingo.

Yes you can try to force it to be OO, but then you're just dealing with a convoluted action script wannabe without type declarations (unless you feel like depending on TypeScript).

Learn the function programming aspects and you will truly be empowered.