-
Notifications
You must be signed in to change notification settings - Fork 277
development conventions
Darren edited this page Feb 4, 2016
·
1 revision
To make it easier navigating throughout the codebase we try to adhere to certain naming conventions.
- Indentation is 4 spaces
- Filename to match the object/class name in lowercase (weblistener.js for WebListener)
- Treat acronyms in object names as words (
HttpHandler
instead ofHTTPHandler
) - Variables to be lowercase, _ delimited words (
my_var
) - Function names to be camelCase, starting with lowercase (
myFunction
) - Class names to be CamelCase, starting with uppercase (
MyClass
) - When using
var name = this;
, stick tovar that = this;
unless nested
Officially mirrored at https://kiwiirc.com/docs/