JavaScript: The Good Parts

Working with the Shallow Grain of JavaScript

Paperback, 250 pages

English language

Published May 15, 2008 by O'Reilly Media, Inc..

ISBN:
978-0-596-51774-8
Copied ISBN!

View on OpenLibrary

(41 reviews)

JavaScript, having been developed and released in a hurry before it could be refined, has more than its share of the bad parts. This book scrapes away these bad features to reveal a JavaScript subset that's more reliable, readable, and maintainable than the language as a whole-a subset you can use to create extensible and efficient code. (back cover copy)

1 edition

Review of 'JavaScript: The Good Parts' on 'Goodreads'

A concise, opinionated coverage of JavaScript for experienced developers. This is not a beginners book.

The book begins by describing the language Grammar using railroad diagrams. This is immensely helpful in forming a mental diff against whichever imperative C-based language you're coming from (C, C++, Java, etc.).

I found the coverage of object construction (new, constructor functions) confusing. I had to re-read it to understand what was going on. This is partly due to JavaScript's pandering to classical OO languages, but I still felt that Douglas could have explained it clearer.

Three chapters in particular stand out, and are likely to keep me coming back to the book. Chapter 5, "Inheritance", explains prototypal inheritance nicely and concisely. Appendices A and B, "Awful Parts" and "Bad Parts" respectively, are concise listings of features to avoid (if you happen to agree with Douglas on the harmfulness of the feature in question).

All …

Review of 'JavaScript: The Good Parts' on 'Goodreads'

I was never going to be thrilled with this book because ugh, javascript.
But I was expecting more than a typical 2-star throwaway tech book. It was hard to get past the inconsistency (globals variables are bad, let's tack new methods onto global prototype objects!), bad editing, and repetition (I think one code snippet was repeated a total of 3 times).

A lot of people seem to like this book. If the idea of subsetting a language to produce a better variant is new to you, or if you've been stuck in the javascript salt mines, without noticing the river Lisp curving its way through them, or perhaps if protypical inheritance is a new concept for you, I can see how it could be a breath of fresh air. None of that holds for me, so it wasn't. The javascript subset he comes up with seems rather clumsy, and verbose, …

avatar for jonathan.brodsky

rated it

avatar for nithinbekal

rated it

avatar for ryuslash

rated it

avatar for emick

rated it

avatar for malcolmbarrett

rated it

avatar for julienmartlet

rated it

avatar for pcalcado

rated it

avatar for paparomeo

rated it

avatar for Griddle

rated it

avatar for tartley

rated it

avatar for corexian

rated it

avatar for bion

rated it

avatar for andrewmriley

rated it

avatar for gbraad

rated it

avatar for AnsgarFrej

rated it

avatar for enricodangelo

rated it

avatar for simme

rated it

avatar for unwiredben

rated it

avatar for bachya

rated it

avatar for Hiro.protagonist

rated it

avatar for brunosan

rated it

avatar for dactyl

rated it

avatar for inerte

rated it

avatar for GooseThief

rated it

avatar for piotr

rated it

avatar for Bitboxer

rated it

avatar for ntavish

rated it

avatar for sirodoht

rated it

avatar for madklowns

rated it

avatar for Lunartech

rated it

avatar for Tinche

rated it

avatar for balise

rated it

avatar for tsvallender

rated it

avatar for andyinabox

rated it

avatar for Feneric

rated it

Subjects

  • Java & variants
  • Computers
  • Computers - Languages / Programming
  • Computer Books: Languages
  • Programming Languages - CGI, Javascript, Perl, VBScript
  • Computers / Languages / Programming
  • Computers / Programming Languages / CGI, JavaScript, Perl, VBScript
  • JavaScript, functional, regular expression, prototype, object, arrays, efficient
  • Internet - Web Site Design
  • Programming - Software Development