To make it easier navigating throughout the codebase we try to adhere to certain naming conventions.

  1. Indentation is 4 spaces
  2. Filename to match the object/class name in lowercase (weblistener.js for WebListener)
  3. Treat acronyms in object names as words (HttpHandler instead of HTTPHandler)
  4. Variables to be lowercase, _ delimited words (my_var)
  5. Function names to be camelCase, starting with lowercase (myFunction)
  6. Class names to be CamelCase, starting with uppercase (MyClass)
  7. When using var name = this;, stick to var that = this; unless nested