Have you ever restricted yourself to using a subset of language features?

Douglas Crockford’s book JavaScript: The Good Parts is a prime example of this. He lists ‘features’ in JavaScript that should be avoided and provides alternatives that use the ‘good parts’ of the language.

A few of the bad parts are:

  • eval
    slower, harder to read, dangerously insecure

  • ==
    confusing and ambiguous with differently typed operands

  • with
    unpredictable results

Leave a Comment