r/programming • • May 09 '12

JavaScript: The good parts

http://blog.movereem.nl/images/javascript-the-good-parts-the-definitive-guide.jpg
645 Upvotes

159 comments sorted by

View all comments

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.

4

u/grendel-khan May 09 '12

"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.

1

u/dogs_on_my_face May 09 '12

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.

2

u/grendel-khan May 10 '12

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.