forked from AABoyles/MicrobeTrace
-
Notifications
You must be signed in to change notification settings - Fork 38
zForDevelopers – Nomenclature
mossy426 edited this page Jul 28, 2021
·
1 revision
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.
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:
-
id
s andclass
es should be all-lower-case, hyphen-delimited (i.e. kebab case)
-
function
s andvar
iables (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
) -
event
s (that are unique to MicrobeTrace) should be kebab-case
Copyright 2017-2020 Centers for Disease Control and Prevention • Acknowledgements