Archive for the ‘Douglas Crockford’ Tag

Douglas Crockford JavaScript coding conventions

Link to coding conventions: http://javascript.crockford.com/code.html

List of headings at the coding conventions site:

  • JavaScript files
  • Indentation
  • Line Length
  • Comments
  • Variable Declarations
  • Function Declarations
  • Names
  • Statements
    • Simple Statements
    • Compound Statements
    • Labels
    • return Statement
    • if Statement
    • for Statement
    • while Statement
    • do Statement
    • switch Statement
    • try Statement
    • continue Statement
    • with Statement
  • White-space
  • Bonus Suggestions
    • {} and []
    • , (comma) Operator
    • Block Scope
    • Assignment Expressions
    • === and !== Operators
    • Confusing Pluses and Minuses
    • eval is Evil

The Douglas Crockford videos

Excellent videos to add to the collection.

  1. Volume One: The Early Years
  2. Chapter 2: And Then There Was JavaScript
  3. Act III: Function the Ultimate
  4. Episode IV: The Metamorphosis of Ajax
  5. Part V: The End of All Things

Thanks Brandon, for pointing these out.