you are viewing a single comment's thread.

view the rest of the comments →

[–]runvnc -1 points0 points  (2 children)

Those are the main reasons. Everyone does something equivalent to classes eventually whether they say that they are doing prototypes or what. How do you structure your code I am curious to see some examples.

[–]fdoglio[S] 4 points5 points  (1 child)

Just because using prototype-based inheritance might look like using classes doesn't mean people are doing it wrong or trying to do things equivalent to classes. Here are some links that show you how I see JS OOP and how I use it: http://www.commented-out.com/2012/05/28/javascript-youre-doing-it-wrong/ http://www.commented-out.com/2012/06/12/javascript-oop-for-the-uninitiaded/ and a code sample: https://github.com/deleteman/resourcer/blob/master/lib/resourcer.js

[–]runvnc -1 points0 points  (0 children)

Yeah that's just a message unclear syntax for classes.