|
|
|
|
|
by tlrobinson
6527 days ago
|
|
And my reaction thus far has been one of shock. “JavaScript: The Good Parts” details four distinct ways to do OO, all of which can be found in the wild. Literally half the book is an apology for the other half, “This is awful, but hey first-class functions are swell!” I thought the exact same thing when reading "JavaScript: The Good Parts". People often say you shouldn't try emulate classical inheritance with JavaScript, but the fact is every JS library does it to some extent, and each one does it differently. It's hard to keep track of the syntax and semantics for each version. |
|