3 ms·
I think class were needed because too many developers were creating their own (incompatible) class systems on top of prototypal inheritance (which is more verbo
by throw_m239339 5y ago
I think class were needed because too many developers were creating their own (incompatible) class systems on top of prototypal inheritance (which is more verbose).
The problem with Typescript is that too many Typescript developers don't understand Javascript itself, which is an completely different issue. That and the obsession for some to reproduce JEE everywhere including in the browser...
- moystard 5y agoWhat do you mean by reproducing JEE? Leveraging OOP in your Javascript programs? I really dislike this tendency of certain Javascript developers to qualify combining OOP with Javascript as "not understanding the language".
- tentacleuno 5y agoIn my humble opinion, they're both fine. Use functions where you need to, and do the same with classes. They're both citizens of the language, so why not utilize them?
- moystard 5y agoI agree with you. They both serve a purpose and should be used when they make the most sense.