"JS: The Good Parts" is by Douglas Crockford, who included plenty of stuff on information hiding and inheritance. (The stuff in the book is a little longer, and includes what he considers to be a much cleaner (and more traditional) OO style bolted atop JavaScript's syntax.)
I think "the good parts" would have been a lot longer if he'd included a comprehensive DOM reference, which I'm pretty sure "the definitive guide" did.
Interesting.. do you recommend the book? I was not being literal about this book, but just posing a complaint that in general developers often do not use OO techniques in JS which to me makes JS often more difficult to read than other languages.
I do recommend it--it's what I used when I had to learn JavaScript in a few weeks for work. (Well, learn enough JavaScript to start cleaning up a heap of nonstandard hacky code, add comments and unit tests, and so on.)
I do have to keep reminding myself that JavaScript was not the worst thing that could have happened to the internet. We could all be using VBScript, for example.
0
u/dogs_on_my_face May 09 '12
I suspect the good parts would have a few more pages if more people wrote JS using OO concepts.