[JS] Writing a good class system

You're viewing a single comment in a conversation. View all the comments
  • 4 Comments

  • Order by
  • Why does your message sound like a bot wrote it? I can't tell if you're just trying to advertise your link or if you're actually being serious.

    • 14 years teaching software engineering in college. I'm trying to protect your reputation. Does that sound like a "BOT"???

      • To be fair, yes you do sound like a bot.

        To reply to your original message: This course was written when JS in C3 was a fairly new feature. While I think it still does have some merit, I would not use that paradigm anymore.

        JS in C3 is a lot more versatile than it used to be, and using the subclassing is almost never a good idea nowadays. Also, to be perfectly clear, this is specifically a suggestion on how to use JS in C3, not how to use JS in general. Having to compose with a game engine, a partially exposed runtime and a toolset makes it much different than if you were using exclusively JS.

        Now, I still don't understand why you would call using classes "super-imposing OOP on top of JavaScript Prototypes", but whatever.