Skip to content

zForDevelopers – Nomenclature

mossy426 edited this page Jul 28, 2021 · 1 revision

MicrobeTrace

Please note that this page is for developers and likely does not contain any information relevant to users of MicrobeTrace.

In general, MicrobeTrace tries to adhere to the following style guide:

  • everything should have context-revealing names.

In HTML

MicrobeTrace uses Bootstrap for most layouts and elements, so the majority of classes and names come from that. However, we also want to use names that are broadly consistent with Bootstrap's style so:

  • ids and classes should be all-lower-case, hyphen-delimited (i.e. kebab case)

In Javascript

  • functions and variables (either globally- or locally- scoped) will be camelCase
  • Object keys should also be camelCase, unless the keys map directly to some HTML or CSS element (see, for example, session.style.widgets)
  • events (that are unique to MicrobeTrace) should be kebab-case
Clone this wiki locally