News for hackers. Stuff that matters.
Re:JavaScript Prototypes Made Easy by johncoltrane on Saturday June 30, 2012 @05:50PM (#4182927)
Yes.

Different languages, different paradigms, different designs, different flaws…

You are learning a new language, not toying with a broken implementation of your preferred language. JS is not a subset of C++ or Java. Think/act accordingly.

I don't use ".prototype" in AS3 or PHP because it doesn't make sense. I don't use "class" in JS because it doesn't make sense.

Do it for your own sanity.

It's really quite simple but it seems to be hard for a lot of people.

There are no comments on this comment yet.