4 ms·
Javascript is a true OOP language. I'm all in favour of simplifying some of the syntax but why call it a "class"? That's only going to further confuse matters.
by ChrisSD 8y ago
Javascript is a true OOP language.
I'm all in favour of simplifying some of the syntax but why call it a "class"? That's only going to further confuse matters. I already have a hard enough time trying to teach Javascript's OOP model without adding to the confusion.
- kowdermeister 8y agoWhy not? It's totally reasonable if you learn a language to get familiar with the concepts in it. Every language is different here and there and the 'class' describes well what it does: wrap things together that belong together.
- krapp 8y ago>and the 'class' describes well what it does: wrap things together that belong together. So does "Object". All "Class" does, here is paper over some of the complexity of making JS objects. If anything, JS classes hide necessary concepts about the language from the developer. At least with the old, ugly way of doing things, you were forced to confront prototypes and scope and how 'this' worked.