Skip to content

CodingGuidelines

rmx edited this page May 30, 2016 · 1 revision

Coffee-Script

  • 4 space indentation
  • Private variables prefixed with underscore
  • For read-only attributes, define property getters (Object.defineProperty ...)
  • Define a toString function on classes that produces output similar to this: <WorldObject id=42 name='The Evil Boss'>.

Stylus

  • 4 space indentation
Clone this wiki locally