-
Notifications
You must be signed in to change notification settings - Fork 112
Coding Conventions
Steve Pieper edited this page Jul 7, 2017
·
3 revisions
- Acronyms should have consistent capitalization
- DICOM or dicom, not Dicom.
- CamelCase or camelCase
- Class names capitalized
- method names lowercase
- js filename matches class name (if one class in file) or descriptive (lowercase) name if file contains a related family of classes
- prefer fully written out words (not abbreviations) and longer identifiers for variables and methods
- TBD
- TBD
- target "modern and future" browsers
- transpiling for older environments should be handled elsewhere
- ES6 conventions
- Classes
- arrow functions
- let instead of var
- no modules/imports (yet)
- avoid package dependencies whenever possible
- Avoid excess tooling in dcmjs proper
- Create other repositories and projects for
- packaging
- transpiling
- integration with web frameworks