3 ms·
> The thing about "Class based Programming" - or Object Orientated Programming You can have OOP without classes - prototypal inheritance for example. In JS, yo
by nailer 13y ago
> The thing about "Class based Programming" - or Object Orientated Programming
You can have OOP without classes - prototypal inheritance for example. In JS, you just clone an exemplar with Object.create() for example.
That said, the article author does the same thing.
- collyw 13y agoHaving used Angular for a month or so in summer, I find prototypal inheritance horrible and unpredictable. I am never 100% sure if the data is coming from or updating the parent object or the current object. Class based inheritance seems a lot more predicable to me.
- nailer 13y agoIf Angular is your only experience of JS, I'm surprised you don't think JavaScript is the most complicated language in existence.